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

Method test_teleport

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

Source from the content-addressed store, hash-verified

482 self.assertTrue(tpen.isvisible())
483
484 def test_teleport(self):
485
486 tpen = turtle.TPen()
487
488 for fill_gap_value in [True, False]:
489 tpen.penup()
490 tpen.teleport(100, 100, fill_gap=fill_gap_value)
491 self.assertFalse(tpen.isdown())
492 tpen.pendown()
493 tpen.teleport(-100, -100, fill_gap=fill_gap_value)
494 self.assertTrue(tpen.isdown())
495
496
497class TestTurtleScreen(unittest.TestCase):

Callers

nothing calls this directly

Calls 6

penupMethod · 0.95
teleportMethod · 0.95
isdownMethod · 0.95
pendownMethod · 0.95
assertFalseMethod · 0.80
assertTrueMethod · 0.80

Tested by

no test coverage detected