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