Пример #1
0
 def test_ghost_does_not_get_eaten_because_not_touching_ghost(self):
     self.assertIs(
         eat_ghost(True, False),
         False,
         msg="ghost does not get eaten because not touching ghost")
Пример #2
0
 def test_ghost_gets_eaten(self):
     self.assertIs(eat_ghost(True, True),
                   True,
                   msg="ghost should get eaten")
Пример #3
0
 def test_ghost_does_not_get_eaten_because_no_power_pellet_active(self):
     self.assertIs(
         eat_ghost(False, True),
         False,
         msg="ghost does not get eaten because no power pellet active")