def test_get_run_type(self): self.assertEquals(lutils.get_run_type(self.test_path), "Delayed") with self.assertRaises(KeyError): lutils.get_run_type(self.bad_path)
def test_get_run_type(self): self.assertEqual(lutils.get_run_type(self.test_path), "Delayed") self.assertEqual(lutils.get_run_type('a.b10.c'), "Prompt") self.assertEqual(lutils.get_run_type('a.b99.c'), "Total") with self.assertRaises(KeyError): lutils.get_run_type(self.bad_path)
def test_get_run_type(self): self.assertEquals(lutils.get_run_type(self.test_path), "Delayed") with self.assertRaises(KeyError): lutils.get_run_type(self.bad_path)