def test_player_number_is_not_number(self): with pytest.raises(PlayerParameterException): player = Player(name, tuple_ones) player.number = "Tests"
def test_player_number_negative(self): with pytest.raises(PlayerParameterException): player = Player(name, tuple_ones) player.number = -1
def test_player_number_decimal(self): with pytest.raises(PlayerParameterException): player = Player(name, tuple_ones) player.number = 3.5