Beispiel #1
0
def test_get_catalog_valid():
    df = mg.read_csv_metadata(path_for_A)
    mg.set_key(df, 'ID')
    assert_equal(len(mg.get_all_properties(df)), 1)
    c = mg.get_catalog()
    assert_equal(len(c), 1)
    mg.del_catalog()
Beispiel #2
0
def test_set_key_valid():
    df = mg.read_csv_metadata(path_for_A)
    mg.set_key(df, 'ID')
    assert_equal(mg.get_key(df), 'ID')

    mg.del_property(df, 'key')
    assert_equal(len(mg.get_all_properties(df)), 0)
Beispiel #3
0
def test_get_all_properties_invalid():
    df = mg.read_csv_metadata(path_for_A)
    assert_equal(len(mg.get_all_properties(df)), 1)