Loading docs/topics/testing.txt +1 −1 Original line number Diff line number Diff line Loading @@ -656,7 +656,7 @@ Exceptions ~~~~~~~~~~ If you point the test client at a view that raises an exception, that exception will be visible in the test case. You can then use a standard ``try...catch`` will be visible in the test case. You can then use a standard ``try...except`` block or ``unittest.TestCase.assertRaises()`` to test for exceptions. The only exceptions that are not visible to the test client are ``Http404``, Loading Loading
docs/topics/testing.txt +1 −1 Original line number Diff line number Diff line Loading @@ -656,7 +656,7 @@ Exceptions ~~~~~~~~~~ If you point the test client at a view that raises an exception, that exception will be visible in the test case. You can then use a standard ``try...catch`` will be visible in the test case. You can then use a standard ``try...except`` block or ``unittest.TestCase.assertRaises()`` to test for exceptions. The only exceptions that are not visible to the test client are ``Http404``, Loading