def test_float_deserializer_unhappy(unhappy_input):
    """ test all unhappy cases for the integer serializer """
    with pytest.raises(SerializerException):
        FloatSerializer.deserialize(unhappy_input)
Beispiel #2
0
def test_float_deserializer_unhappy(unhappy_input):
    """ test all unhappy cases for the integer serializer """
    with pytest.raises(SerializerException):
        FloatSerializer.deserialize(unhappy_input)
def test_float_deserializer_happy(inp, expected_output):
    """ test all happy cases for the integer serializer """
    assert FloatSerializer.deserialize(inp) == expected_output
Beispiel #4
0
def test_float_deserializer_happy(inp, expected_output):
    """ test all happy cases for the integer serializer """
    assert FloatSerializer.deserialize(inp) == expected_output