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

Method test_poly_context_when_creating_poly

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

Source from the content-addressed store, hash-verified

641 self.assertFalse(self.turtle._creatingPoly)
642
643 def test_poly_context_when_creating_poly(self):
644 # The context manager works when the turtle is already creating poly.
645 self.turtle.begin_poly()
646 self.assertTrue(self.turtle._creatingPoly)
647 with self.turtle.poly():
648 self.assertTrue(self.turtle._creatingPoly)
649 self.assertFalse(self.turtle._creatingPoly)
650
651 def test_dot_signature(self):
652 self.turtle.dot()

Callers

nothing calls this directly

Calls 4

begin_polyMethod · 0.80
assertTrueMethod · 0.80
polyMethod · 0.80
assertFalseMethod · 0.80

Tested by

no test coverage detected