mirror of
https://github.com/TrentSPalmer/trentpalmerdotorg.git
synced 2024-12-22 04:52:49 -08:00
add PATH_INFO test to accounts/tests/test_log_out_view.py
This commit is contained in:
parent
12507888a8
commit
4b2bcae2ed
@ -16,9 +16,11 @@ class TestLogOutViewTestCase(TestCase):
|
||||
self.assertTrue("Successfully Logged Out" in response.content.decode('utf-8'))
|
||||
self.assertEquals(response.status_code, 200)
|
||||
self.assertTemplateUsed(response, 'audio/index.html')
|
||||
self.assertEquals(response.request['PATH_INFO'], '/')
|
||||
|
||||
def test_log_out_view_no_login(self):
|
||||
response = self.client.post(reverse('accounts:logout'), follow=True)
|
||||
self.assertFalse("Successfully Logged Out" in response.content.decode('utf-8'))
|
||||
self.assertEquals(response.status_code, 200)
|
||||
self.assertTemplateUsed(response, 'audio/index.html')
|
||||
self.assertEquals(response.request['PATH_INFO'], '/')
|
||||
|
Loading…
Reference in New Issue
Block a user