def test_json_deserializer(): _dict = {"foo": ["bar", "stool"]} val = json_serializer(_dict) sdict = json_deserializer(val) assert _dict == sdict
def test_json_serializer(): val = json_serializer({"foo": ["bar", "stool"]}) val_obj = json.loads(val) assert val_obj == {"foo": ["bar", "stool"]}