def test_two_living_sides(self): joe = Player("Joe") darf = Mob("Darf") self.assertTrue(two_sides([joe, darf])) joe.take_damage(150) self.assertFalse(joe.is_alive) self.assertFalse(two_sides(living_fighters([joe, darf])))
def test_two_living_sides(self): joe = Player("Joe") darf = Mob("Darf") self.assertTrue(two_sides([joe, darf])) joe.take_damage(150) self.assertFalse(joe.is_alive) self.assertFalse(two_sides(living_fighters([joe, darf])))