Beispiel #1
0
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
Beispiel #2
0
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