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')), [])
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'))
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'))