示例#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')