Ejemplo n.º 1
0
 def testInputPath (self):
         """Tests for input folder"""
         # Should give an error if not exit
         self.assertRaises(fastqc_reports.InputError, fastqc_reports.input_handler, ("-i", "poo"))
         # Test works only if calles from parent directory
         test_path = "src"
         path = os.path.join (os.getcwd(), test_path)
         test_result = fastqc_reports.input_handler (("-i", test_path))
         self.assertEqual (test_result['i'], path)
         self.assertEqual (test_result['o'], path)
         # Test is file will have the same name as given
         self.assertEqual (fastqc_reports.input_handler (("-f", "poo.csv"))['f'], "poo.csv")
Ejemplo n.º 2
0
        def testZipRecognition (self):
                # Test is returning TRUE when -z parameter is given, and FALSE when not

                self.assertTrue (fastqc_reports.input_handler(("-z", ""))['z'])
                self.assertFalse (fastqc_reports.input_handler((""))['z'])