def test_check(self): tr = TestRun(self.testConfig , "Name") tr.add_check( path_exists , "some/file" ) with self.assertRaises(Exception): tr.add_check( 25 , "arg") with self.assertRaises(Exception): tr.add_check( func_does_not_exist , "arg")
def test_check(self): tr = TestRun("test-data/local/run/config.txt" , "Name") tr.add_check( path_exists , "some/file" ) with self.assertRaises(Exception): tr.add_check( 25 , "arg") with self.assertRaises(Exception): tr.add_check( func_does_not_exist , "arg")