def test_del_property_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(mg.is_property_present_for_df(df, 'key'), False) mg.del_catalog()
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)