def test_none_deserializer_unhappy(unhappy_input):
    """ test all unhappy cases for the integer serializer """
    with pytest.raises(SerializerException):
        NoneSerializer.deserialize(unhappy_input)
Beispiel #2
0
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
Beispiel #4
0
def test_none_deserializer_happy(inp, expected_output):
    assert NoneSerializer.deserialize(inp) == expected_output