Пример #1
0
 def test_check_duplicated_columns_handles_lower_upper_case(self):
     test_file = get_test_loc('test_gen/dup_keys_with_diff_case.csv')
     expected = [
         Error(
             ERROR,
             'Duplicated column name(s): copyright with Copyright\nPlease correct the input and re-run.'
         )
     ]
     result = gen.check_duplicated_columns(test_file)
     assert expected == result
Пример #2
0
 def test_check_duplicated_columns(self):
     test_file = get_test_loc('gen/dup_keys.csv')
     expected = [
         Error(
             ERROR,
             u'Duplicated column name(s): copyright with copyright\nPlease correct the input and re-run.'
         )
     ]
     result = gen.check_duplicated_columns(test_file)
     assert expected == result
Пример #3
0
 def test_check_duplicated_columns_handles_lower_upper_case(self):
     test_file = get_test_loc('gen/dup_keys_with_diff_case.csv')
     expected = [Error(ERROR, u'Duplicated column name(s): copyright with Copyright\nPlease correct the input and re-run.')]
     result = gen.check_duplicated_columns(test_file)
     assert expected == result