Exemplo n.º 1
0
 def test_iodp_with_one_file(self):
     options = {}
     #dir_path = os.path.join(WD, 'data_files', 'Measurement_Import',
     #'iodp_srm_magic')
     dir_path = os.path.join(WD, 'data_files', 'UTESTA', 'SRM_data')
     options['input_dir_path'] = dir_path
     options['csv_file'] = 'srmdiscrete-XXX-UTEST-A.csv'
     program_ran, outfile = iodp_dscr_magic.main(False, **options)
     self.assertTrue(program_ran)
     self.assertEqual(outfile, os.path.join('.', 'magic_measurements.txt'))
Exemplo n.º 2
0
 def test_iodp_with_one_file(self):
     options = {}
     #dir_path = os.path.join(WD, 'data_files', 'Measurement_Import',
     #'iodp_srm_magic')
     dir_path = os.path.join(WD, 'data_files', 'UTESTA', 'SRM_data')
     options['input_dir_path'] = dir_path
     options['csv_file'] = 'srmdiscrete-XXX-UTEST-A.csv'
     program_ran, outfile = iodp_dscr_magic.main(False, **options)
     self.assertTrue(program_ran)
     self.assertEqual(outfile, os.path.join('.', 'magic_measurements.txt'))
Exemplo n.º 3
0
 def test_iodp_with_no_files(self):
     program_ran, error_message = iodp_dscr_magic.main(False)
     self.assertFalse(program_ran)
     self.assertEqual(error_message, 'No .csv files were found')
Exemplo n.º 4
0
 def test_iodp_with_no_files(self):
     program_ran, error_message = iodp_dscr_magic.main(False)
     self.assertFalse(program_ran)
     self.assertEqual(error_message, 'No .csv files were found')