def test_set_properties_valid_1(self):
     A = read_csv_metadata(path_a)
     p = cm.get_all_properties(A)
     B = pd.read_csv(path_b)
     cm.init_properties(B)
     cm.set_properties(B,p)
     self.assertEqual(cm.get_all_properties(B)==p, True)
 def test_set_properties_df_notin_catalog_replace_false(self):
     A = read_csv_metadata(path_a)
     cm.set_properties(A, {}, replace=False)
     self.assertEqual(cm.get_key(A), 'ID')
 def test_set_properties_invalid_dict_1(self):
     A = read_csv_metadata(path_a)
     cm.set_properties(A, None)
 def test_set_properties_invalid_df_1(self):
     cm.set_properties(None, {})