def test_default(self): script = [] expected_ms = commands.concat(script, self.testvis_list, out_dir=self.output_dir) # Manually ensure target does not pre-exist if os.path.isdir(expected_ms): shutil.rmtree(expected_ms) # Test in usual case, not-preexisting casa_out, errs = self.casa.run_script(script) self.assertTrue(os.path.isdir(expected_ms))
def test_default(self): script = [] expected_ms = commands.concat( script, self.testvis_list, out_dir=self.output_dir) # Manually ensure target does not pre-exist if os.path.isdir(expected_ms): shutil.rmtree(expected_ms) # Test in usual case, not-preexisting casa_out, errs = self.casa.run_script(script) self.assertTrue(os.path.isdir(expected_ms))
def test_unicode(self): script = [] unicode_list = [unicode(v) for v in self.testvis_list] expected_ms = commands.concat(script, unicode_list, out_dir=self.output_dir) print expected_ms # Manually ensure target does not pre-exist if os.path.isdir(expected_ms): shutil.rmtree(expected_ms) # Test in usual case, not-preexisting casa_out, errs = self.casa.run_script(script) print "\n".join(casa_out) self.assertTrue(os.path.isdir(expected_ms))
def test_unicode(self): script = [] unicode_list = [unicode(v) for v in self.testvis_list] expected_ms = commands.concat( script, unicode_list, out_dir=self.output_dir) print expected_ms # Manually ensure target does not pre-exist if os.path.isdir(expected_ms): shutil.rmtree(expected_ms) # Test in usual case, not-preexisting casa_out, errs = self.casa.run_script(script) print '\n'.join(casa_out) self.assertTrue(os.path.isdir(expected_ms))