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")
def test_ghost_gets_eaten(self): self.assertIs(eat_ghost(True, True), True, msg="ghost should get eaten")
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")