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

Method test_fill_context_when_filling

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

Source from the content-addressed store, hash-verified

610 self.assertFalse(self.turtle.filling())
611
612 def test_fill_context_when_filling(self):
613 # The context manager works even when the turtle is already filling.
614 self.turtle.begin_fill()
615 self.assertTrue(self.turtle.filling())
616 with self.turtle.fill():
617 self.assertTrue(self.turtle.filling())
618 self.assertFalse(self.turtle.filling())
619
620 def test_begin_end_poly(self):
621 self.assertFalse(self.turtle._creatingPoly)

Callers

nothing calls this directly

Calls 5

begin_fillMethod · 0.80
assertTrueMethod · 0.80
fillingMethod · 0.80
assertFalseMethod · 0.80
fillMethod · 0.45

Tested by

no test coverage detected