Example #1
0
 def test_finish_logout_renders_error_template(self):
     request = RequestFactory().get('/bar/foo')
     response = finish_logout(request, None)
     self.assertContains(response, "<h1>Logout error</h1>", status_code=200)
Example #2
0
 def test_finish_logout_renders_error_template(self):
     request = RequestFactory().get('/bar/foo')
     response = finish_logout(request, None)
     self.assertContains(response, "<h1>Logout error</h1>", status_code=200)