def test_is_filling(): t = MockTurtle() is_filling1 = t.fill() t.begin_fill() is_filling2 = t.fill() t.end_fill() is_filling3 = t.fill() assert not is_filling1 assert is_filling2 assert not is_filling3
def test_is_filling(self): # SETUP # EXEC t = MockTurtle() is_filling1 = t.fill() t.begin_fill() is_filling2 = t.fill() t.end_fill() is_filling3 = t.fill() # VERIFY self.assertFalse(is_filling1) self.assertTrue(is_filling2) self.assertFalse(is_filling3)