예제 #1
0
 def test_blank_diff(self):
     # identical files yields nothing (no header row even)
     # so that it is clear there is nothing to load into
     # OpenSpending
     basic1 = os.path.join(test_sample_dir, 'basic1.csv')
     self.assertEqual(list(spend_diff.spend_diff(basic1, basic1, 'RowID')),
                      [])
예제 #2
0
 def test_blank_diff(self):
     # identical files yields nothing (no header row even)
     # so that it is clear there is nothing to load into
     # OpenSpending
     basic1 = os.path.join(test_sample_dir, 'basic1.csv')
     self.assertEqual(list(spend_diff.spend_diff(basic1, basic1,
                                                 'RowID')),
                      [])
예제 #3
0
 def setUpClass(cls):
     cls.lines = list(
         spend_diff.spend_diff(
             os.path.join(test_sample_dir, 'difficult1.csv'),
             os.path.join(test_sample_dir, 'difficult2.csv'), 'RowID'))
예제 #4
0
 def setUpClass(cls):
     cls.lines = list(spend_diff.spend_diff(os.path.join(test_sample_dir, 'difficult1.csv'),
                                            os.path.join(test_sample_dir, 'difficult2.csv'),
                                            'RowID'))