def test_to_json(normalized_data: NormalizedData, object_id): normalized_data.uid = object_id normalized_data_json = normalized_data.to_json() loaded_json = NormalizedData.from_json(normalized_data_json) assert loaded_json == normalized_data
def test_get_doc(normalized_data: NormalizedData, object_id): normalized_data.uid = object_id normalized_data_doc = normalized_data.to_doc() data_obj = NormalizedData.from_doc(normalized_data_doc) assert data_obj == normalized_data