Пример #1
0
 def test_dont_win_if_not_all_dots_eaten(self):
     self.assertIs(
         win(False, True, True),
         False,
         msg=
         "don't win if not all dots eaten and touching a ghost with a power pellet active"
     )
Пример #2
0
 def test_win_if_all_dots_eaten_and_touching_a_ghost_with_a_power_pellet_active(
         self):
     self.assertIs(
         win(True, True, True),
         True,
         msg=
         "win if all dots eaten and touching a ghost with a power pellet active"
     )
Пример #3
0
 def test_dont_win_if_all_dots_eaten_but_touching_a_ghost(self):
     self.assertIs(win(True, False, True),
                   False,
                   msg="don't win if all dots eaten, but touching a ghost")
Пример #4
0
 def test_win_if_all_dots_eaten(self):
     self.assertIs(win(True, False, False),
                   True,
                   msg="win if all dots eaten")