예제 #1
0
파일: test_utils.py 프로젝트: dirn/Simon
    def test_exception_hierarchy(self):

        with ignored(LookupError):
            'Hello'[50]
예제 #2
0
파일: test_utils.py 프로젝트: dirn/Simon
    def test_exact_exception(self):

        with ignored(TypeError):
            len(5)
예제 #3
0
파일: test_utils.py 프로젝트: dirn/Simon
    def test_multiple_exception_args(self):

        with ignored(ZeroDivisionError, TypeError):
            len(5)
예제 #4
0
파일: test_utils.py 프로젝트: dirn/Simon
    def test_no_exception(self):

        with ignored(ValueError):
            self.assertEqual(pow(2, 5), 32)
예제 #5
0
파일: test_utils.py 프로젝트: dirn/Simon
    def test_exception_hierarchy(self):

        with ignored(LookupError):
            'Hello'[50]
예제 #6
0
파일: test_utils.py 프로젝트: dirn/Simon
    def test_multiple_exception_args(self):

        with ignored(ZeroDivisionError, TypeError):
            len(5)
예제 #7
0
파일: test_utils.py 프로젝트: dirn/Simon
    def test_exact_exception(self):

        with ignored(TypeError):
            len(5)
예제 #8
0
파일: test_utils.py 프로젝트: dirn/Simon
    def test_no_exception(self):

        with ignored(ValueError):
            self.assertEqual(pow(2, 5), 32)