Exemple #1
0
 def test_run(self):
     for case in self.cases:
         res = run(self.cm_fp, case.query, self.tmp_dir)
         with open(res.params['out'].value) as obs, open(case.exp.tblout) as exp:
             # skip comment lines as some contain running time info
             self.assertListEqual(
                 [i for i in exp.readlines() if not i.startswith('#')],
                 [j for j in obs.readlines() if not j.startswith('#')])
Exemple #2
0
 def test_run_wrong_input(self):
     for fp in self.negative_fps:
         with self.assertRaises(CalledProcessError):
             run(self.cm_fp, fp, self.tmp_dir)
Exemple #3
0
 def test_run_wrong_input(self):
     for fp in self.negative_fps:
         with self.assertRaises(CalledProcessError):
             run(self.cm_fp, fp, self.tmp_dir)