예제 #1
0
 def test_get_detectors_num(self):
     self.assertEqual(lutils.get_detectors_num(self.test_path), "1")
예제 #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)
예제 #3
0
 def test_get_detectors_num(self):
     self.assertEquals(lutils.get_detectors_num(self.test_path), "1")