MCPcopy
hub / github.com/django/django / logout

Method logout

tests/auth_tests/test_views.py:91–94  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

89 return response
90
91 def logout(self):
92 response = self.client.post("/admin/logout/")
93 self.assertEqual(response.status_code, 200)
94 self.assertNotIn(SESSION_KEY, self.client.session)
95
96 def assertFormError(self, response, error):
97 """Assert that error is found in response.context['form'] errors"""

Calls 1

postMethod · 0.45

Tested by

no test coverage detected