def test_deserialize_empty_set(): assert set() == deserialize_value(serialize_value(set())) assert frozenset() == deserialize_value(serialize_value(frozenset()))
def test_deserialize_value_ok(): unpacked_tuple = deserialize_value('{"foo": "bar"}') assert unpacked_tuple assert unpacked_tuple["foo"] == "bar"