MCPcopy Create free account
hub / github.com/apache/fory / test_dumps_loads

Function test_dumps_loads

python/pyfory/tests/test_serializer.py:1068–1073  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1066
1067
1068def test_dumps_loads():
1069 fory = Fory(xlang=False, ref=True, compatible=False)
1070 obj = {"a": 1, "b": 2}
1071 data = fory.dumps(obj)
1072 new_obj = fory.loads(data)
1073 assert obj == new_obj
1074
1075
1076def test_module_serialize():

Callers

nothing calls this directly

Calls 3

dumpsMethod · 0.95
loadsMethod · 0.95
ForyClass · 0.90

Tested by

no test coverage detected