コード例 #1
0
 def test_can_substract_points_finished_sets_returns_false(self):
     match = MatchFactory(sets_number=5)
     SetFactory(match=match, game_status=Set.GameStatus.FINISHED.value)
     assert match.can_substract_points('team_one') is False
コード例 #2
0
 def test_can_substract_points_playing_set_return_false_team_two(self):
     match = MatchFactory(sets_number=5)
     SetFactory(match=match,
                game_status=Set.GameStatus.PLAYING.value,
                team_one_points=1)
     assert match.can_substract_points('team_two') is False
コード例 #3
0
 def test_can_substract_points_no_set_returns_false(self):
     match = MatchFactory(sets_number=5)
     assert match.can_substract_points('team_one') is False