Esempio n. 1
0
 def test_get_detectors_num(self):
     self.assertEqual(lutils.get_detectors_num(self.test_path), "1")
Esempio n. 2
0
 def test_get_detectors_num_throws_with_bad_input(self):
     input = ['only.one_separator', 'one.much_longer32123.three']
     for value in input:
         with self.assertRaises(Exception):
             lutils.get_detectors_num(value)
 def test_get_detectors_num(self):
     self.assertEquals(lutils.get_detectors_num(self.test_path), "1")