We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1eb19b commit aa352b2Copy full SHA for aa352b2
auth/views/tests.py
@@ -69,7 +69,8 @@ def test_logout_success(self):
69
70
def test_logout_unauthorised(self):
71
response = self.client.post(reverse('logout'))
72
- self.assertTrue(self.client.is_access_denied(response))
+ self.assertRedirects(response=response, expected_url=f'/', fetch_redirect_response=False)
73
+ self.assertFalse(self.client.is_authorised())
74
75
def test_logout_wrong_method(self):
76
self.client.authorise()
0 commit comments