test: Assert status_code according to the exception
This commit is contained in:
parent
c299ebe779
commit
3199be44cd
1 changed files with 1 additions and 1 deletions
|
|
@ -118,7 +118,7 @@ class TestWebsite(unittest.TestCase):
|
|||
def test_error_page(self):
|
||||
set_request(method="GET", path="/_test/problematic_page")
|
||||
response = get_response()
|
||||
self.assertEqual(response.status_code, 500)
|
||||
self.assertEqual(response.status_code, 417)
|
||||
|
||||
def test_login(self):
|
||||
set_request(method="GET", path="/login")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue