コード例 #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
ファイル: test_run.py プロジェクト: PETECLAM/ResInsight
    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")