MCPcopy Index your code
hub / github.com/python/cpython / test_reset

Method test_reset

Lib/test/test_turtle.py:326–332  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

324 self.assertVectorsAlmostEqual(self.nav._orient, (0, -1.0))
325
326 def test_reset(self):
327 self.nav.goto(100, -100)
328 self.assertAlmostEqual(self.nav.xcor(), 100)
329 self.assertAlmostEqual(self.nav.ycor(), -100)
330 self.nav.reset()
331 self.assertAlmostEqual(self.nav.xcor(), 0)
332 self.assertAlmostEqual(self.nav.ycor(), 0)
333
334 def test_forward(self):
335 self.nav.forward(150)

Callers

nothing calls this directly

Calls 5

gotoMethod · 0.80
xcorMethod · 0.80
ycorMethod · 0.80
assertAlmostEqualMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected