示例#1
0
 def test_verify_columns_to_hash_exist_with_invalid_column(self):
     with pytest.raises(ValueError):
         self.config.COLUMNS_TO_HASH = ["Bad-Column"]
         file_data = HashService.read_csv(self.config.FILES[0], self.config)
         HashService.verify_columns_to_hash_exist(self.config.FILES[0],
                                                  file_data, self.config)
示例#2
0
 def test_verify_columns_to_hash_exist_with_valid_column(self):
     self.config.CSV_DELIMITER = ','
     file_data = HashService.read_csv(self.config.FILES[0], self.config)
     HashService.verify_columns_to_hash_exist(self.config.FILES[0],
                                              file_data, self.config)