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

Method test_fill

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

Source from the content-addressed store, hash-verified

594 self.assertFalse(self.turtle.filling())
595
596 def test_fill(self):
597 # The context manager behaves like begin_fill and end_fill.
598 self.assertFalse(self.turtle.filling())
599 with self.turtle.fill():
600 self.assertTrue(self.turtle.filling())
601 self.assertFalse(self.turtle.filling())
602
603 def test_fill_resets_after_exception(self):
604 # The context manager cleans up correctly after exceptions.

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected