예제 #1
0
파일: test_run.py 프로젝트: blattms/ert
    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")
예제 #2
0
    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")