예제 #1
0
 def test_bgc_alternate_infile(self):
     options = {'input_dir_path': self.input_dir, 'mag_file': 'BC0-3A'}
     program_ran, outfile = bgc_magic.main(False, **options)
     self.assertTrue(program_ran)
     self.assertEqual(outfile, os.path.join('.', 'magic_measurements.txt'))
예제 #2
0
 def test_bgc_success(self):
     options = {'input_dir_path': self.input_dir, 'mag_file': '96MT.05.01'}
     program_ran, outfile = bgc_magic.main(False, **options)
     self.assertTrue(program_ran)
     self.assertEqual(outfile, os.path.join('.', 'magic_measurements.txt'))
예제 #3
0
 def test_bgc_with_no_files(self):
     program_ran, error_message = bgc_magic.main(False)
     self.assertFalse(program_ran)
     self.assertEqual(error_message, 'You must provide a BCG format file')
예제 #4
0
 def test_bgc_alternate_infile(self):
     options = {'input_dir_path': self.input_dir, 'mag_file': 'BC0-3A'}
     program_ran, outfile = bgc_magic.main(False, **options)
     self.assertTrue(program_ran)
     self.assertEqual(outfile, os.path.join('.', 'magic_measurements.txt'))
예제 #5
0
 def test_bgc_success(self):
     options = {'input_dir_path': self.input_dir, 'mag_file': '96MT.05.01'}
     program_ran, outfile = bgc_magic.main(False, **options)
     self.assertTrue(program_ran)
     self.assertEqual(outfile, os.path.join('.', 'magic_measurements.txt'))
예제 #6
0
 def test_bgc_with_no_files(self):
     program_ran, error_message = bgc_magic.main(False)
     self.assertFalse(program_ran)
     self.assertEqual(error_message, 'You must provide a BCG format file')