示例#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"