Skip to content

Commit c154306

Browse files
Expect a 403 status code in test_incomplete_logout
de34c00 changed the status code of the logout error page to be 403 instead of 200, but this test was not updated.
1 parent de34c00 commit c154306

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

djangosaml2/tests/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ def test_incomplete_logout(self):
431431
response = self.client.get(reverse('saml2_ls'), {
432432
'SAMLRequest': deflate_and_base64_encode(saml_request),
433433
})
434-
self.assertContains(response, 'Logout error', status_code=200)
434+
self.assertContains(response, 'Logout error', status_code=403)
435435

436436
def test_finish_logout_renders_error_template(self):
437437
request = RequestFactory().get('/bar/foo')

0 commit comments

Comments
 (0)