예제 #1
0
 def test_player_score_negative(self):
     with pytest.raises(PlayerParameterException):
         player = Player(name, tuple_ones)
         player.score = -1
예제 #2
0
 def test_player_score_decimal(self):
     with pytest.raises(PlayerParameterException):
         player = Player(name, tuple_ones)
         player.score = 3.5
예제 #3
0
 def test_player_score_is_not_number(self):
     with pytest.raises(PlayerParameterException):
         player = Player(name, tuple_ones)
         player.score = "Tests"