From b6ab46dd69ee2dc021e5a6648c8f5f0087d71b2c Mon Sep 17 00:00:00 2001 From: Trent Palmer Date: Wed, 21 Apr 2021 13:27:55 -0700 Subject: [PATCH] update accounts/tests/test_log_out_view.py add function test_log_out_view_get --- accounts/tests/test_log_out_view.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/accounts/tests/test_log_out_view.py b/accounts/tests/test_log_out_view.py index 5f2a6d7..bfc3922 100644 --- a/accounts/tests/test_log_out_view.py +++ b/accounts/tests/test_log_out_view.py @@ -10,6 +10,13 @@ class TestLogOutViewTestCase(TestCase): user_a.set_password('password_user_a') user_a.save() + def test_log_out_view_get(self): + self.client.login(username='user_a', password='password_user_a') + response = self.client.get(reverse('accounts:logout')) + self.assertEquals(response.status_code, 200) + self.assertTemplateUsed(response, 'confirmation.html') + self.assertEquals(response.request['PATH_INFO'], '/accounts/logout/') + 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)