Esempio n. 1
0
 def test_strike_player_not_in_match(self):
     player3 = Player()
     player3.name = 'third'
     player3.save()
     strike = Strike()
     strike.points = 1
     strike.frame = self.frame
     strike.player = player3
     self.assertRaises(ValidationError, strike.save)
Esempio n. 2
0
 def test_set_winner_not_in_match(self):
     player3 = Player()
     player3.name = 'third'
     player3.save()
     self.frame.winner = player3
     self.assertRaises(ValidationError, self.frame.save)