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