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'))
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'))
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')