def test_zombie_birth_when_human_die(self): """check if when a zombie die, a new zombie birth""" old_count = len(list(Zombie.instances)) new_human = Human(Area(1,Grid())) new_human.die() self.assertEqual(old_count+1 , len(list(Zombie.instances)))
def test_human_die(self): """check if when a zombie die is correctly removed from instances""" old_count = len(list(Human.instances)) new_human = Human(Area(1,Grid())) new_human.die() self.assertEqual(old_count, len(list(Human.instances)))