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

Method test_goto

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

Source from the content-addressed store, hash-verified

296 self.nav = turtle.TNavigator()
297
298 def test_goto(self):
299 self.nav.goto(100, -100)
300 self.assertAlmostEqual(self.nav.xcor(), 100)
301 self.assertAlmostEqual(self.nav.ycor(), -100)
302
303 def test_teleport(self):
304 self.nav.teleport(20, -30, fill_gap=True)

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected