def test_string_deserializer_unhappy(unhappy_input): """ test all unhappy cases for the integer serializer """ with pytest.raises(SerializerException): StringSerializer.deserialize(unhappy_input)
def test_string_deserializer_happy(inp, expected_output): assert StringSerializer.deserialize(inp) == expected_output