def testParse(self): """ Test parsing the file """ files = gateway_rpt_utils.get_reports('sample_sql') data = gateway_rpt_utils.parse_file_for_data(files[0]) self.assertEquals(len(data),2) self.assertEquals(data[0], self.gwbt1) self.assertEquals(data[1], self.gwbt2)
def testParse(self): """ Test parsing the file """ files = gateway_rpt_utils.get_reports('sample_sql') data = gateway_rpt_utils.parse_file_for_data(files[0]) self.assertEquals(len(data), 2) self.assertEquals(data[0], self.gwbt1) self.assertEquals(data[1], self.gwbt2)
def testGetReports(self): """ Test the function that gets all the sql files to parse """ import os files = gateway_rpt_utils.get_reports('sample_sql') self.assertEquals(len(files),20) self.assertEquals(os.path.basename(files[-1]),'daily_inbound_gvp.011911copy.txt') self.assertEquals(os.path.basename(files[0]),'daily_inbound_gvp.010111.txt')
def testGetReports(self): """ Test the function that gets all the sql files to parse """ import os files = gateway_rpt_utils.get_reports('sample_sql') self.assertEquals(len(files), 20) self.assertEquals(os.path.basename(files[-1]), 'daily_inbound_gvp.011911copy.txt') self.assertEquals(os.path.basename(files[0]), 'daily_inbound_gvp.010111.txt')