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)
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)