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)
def test_to_obj(name: str, typ: Type[View], value: View, serialized: str, root: str, obj: ObjType): assert value.to_obj() == obj