def test_int_deserializer_unhappy(unhappy_input):
    """ test all unhappy cases for the integer serializer """
    with pytest.raises(SerializerException):
        IntSerializer.deserialize(unhappy_input)
Exemple #2
0
def test_int_deserializer_happy(inp, expected_output):
    """ test all happy cases for the integer serializer """
    assert IntSerializer.deserialize(inp) == expected_output
def test_int_deserializer_happy(inp, expected_output):
    """ test all happy cases for the integer serializer """
    assert IntSerializer.deserialize(inp) == expected_output
Exemple #4
0
def test_int_deserializer_unhappy(unhappy_input):
    """ test all unhappy cases for the integer serializer """
    with pytest.raises(SerializerException):
        IntSerializer.deserialize(unhappy_input)