mirror of
https://github.com/TrentSPalmer/trentpalmerdotorg.git
synced 2024-11-21 17:11:30 -08:00
update accounts/tests/test_log_out_view.py
This commit is contained in:
parent
b6ec41c095
commit
58a1e87db8
@ -13,14 +13,14 @@ class TestLogOutViewTestCase(TestCase):
|
||||
def test_log_out_view(self):
|
||||
self.client.login(username='user_a', password='password_user_a')
|
||||
response = self.client.post(reverse('accounts:logout'), follow=True)
|
||||
self.assertTrue("Successfully Logged Out" in response.content.decode('utf-8'))
|
||||
self.assertEquals(response.status_code, 200)
|
||||
self.assertTrue("Successfully Logged Out" in response.content.decode('utf-8'))
|
||||
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.assertFalse("Successfully Logged Out" in response.content.decode('utf-8'))
|
||||
self.assertTemplateUsed(response, 'audio/index.html')
|
||||
self.assertEquals(response.request['PATH_INFO'], '/')
|
||||
|
Loading…
Reference in New Issue
Block a user