コード例 #1
0
def test_json_dump(name: str, typ: Type[View], value: View, serialized: str,
                   root: str, obj: ObjType):
    assert json.dumps(value.to_obj()) == json.dumps(obj)
コード例 #2
0
def test_to_obj(name: str, typ: Type[View], value: View, serialized: str,
                root: str, obj: ObjType):
    assert value.to_obj() == obj