def test_has_property_df_notin_catalog(self): A = pd.read_csv(path_a) cm.has_property(A, 'key')
def test_valid_path_wi_invalidmetadata_replace_key(self): cm.del_catalog() p = os.sep.join([io_datasets_path, 'A_key_zipcode.csv']) IM = read_csv_metadata(p, key='ID') self.assertEqual(cm.is_dfinfo_present(IM), True) self.assertEqual(cm.has_property(IM, 'key'), True)
def test_has_property_invalid_prop_name(self): A = read_csv_metadata(path_a) cm.has_property(A, None)
def test_has_property_invalid_df(self): cm.has_property(None, 'key')
def test_has_property_valid_2(self): A = read_csv_metadata(path_a) self.assertEqual(cm.has_property(A, 'key1'), False)
def test_has_property_valid_1(self): A = read_csv_metadata(path_a) self.assertEqual(cm.has_property(A, 'key'), True)
def test_valid_path_wi_invalidmetadata_replace_key(self): cm.del_catalog() p = os.sep.join([io_datasets_path, 'A_key_zipcode.csv']) IM = read_csv_metadata(p, key='ID') self.assertEqual(cm.is_dfinfo_present(IM), True) self.assertEqual(cm.has_property(IM, 'key'), True)