def test_non_default_clash_interval(self): phase = Phase(30) bird = YellowBird(1, 1) phase.add_birds(bird) pig = Pig(31, 31) phase.add_pigs(pig) phase.calculate_points(0) self.assertEqual(DESTROYED, bird.status) self.assertEqual(DESTROYED, pig.status)
def test_non_default_clash_interval(self): phase = Phase(30) bird = YellowBird(1, 1) phase.add_birds(bird) pig = Pig(31, 31) phase.add_pigs(pig) phase.calculate_points(0) self.assertEqual(DESTROYED, bird.status) self.assertEqual(DESTROYED, pig.status)
def test_default_clash_interval(self): phase = Phase() bird = YellowBird(1, 1) phase.add_birds(bird) porco = Pig(2, 2) phase.add_pigs(porco) phase.calculate_points(0) self.assertEqual(DESTROYED, bird.status) self.assertEqual(DESTROYED, porco.status)
def test_default_clash_interval(self): phase = Phase() bird = YellowBird(1, 1) phase.add_birds(bird) porco = Pig(2, 2) phase.add_pigs(porco) phase.calculate_points(0) self.assertEqual(DESTROYED, bird.status) self.assertEqual(DESTROYED, porco.status)
def teste_intervalo_de_colisao_nao_padrao(self): ''' Método que testa se o intervalo de colisão da Phase é repassado aos atores. valor testado: 31 ''' fase = Phase(30) passaro = YellowBird(1, 1) fase.add_birds(passaro) porco = Pig(31, 31) fase.add_pigs(porco) fase.calculate_points(0) self.assertEqual(DESTROYED, passaro.status) self.assertEqual(DESTROYED, porco.status)