Exemplo n.º 1
0
 def test_generate_report_filename(self):
     basepath = '/Users/annaglander/Code/monthlyrep/tests/test_toplevel_folder'
     service = ReportPath(basepath)
     output_directory = service.get_output_directory()
     output_file = service.generate_report_filename()
     output_path = os.path.join(output_directory, output_file)
     self.assertEqual(output_path, OUTPUT_FILE_TEST)
Exemplo n.º 2
0
 def test_get_output_directory(self):
     basepath = '/Users/annaglander/Code/monthlyrep/tests/test_toplevel_folder'
     service = ReportPath(basepath)
     output_file = service.get_output_directory()
     self.assertEqual(output_file, '/Users/annaglander/Code/monthlyrep/tests/test_toplevel_folder/Output')