From 08ffa3fc5080b6c5f971cbcccebe680e805349a3 Mon Sep 17 00:00:00 2001 From: Evert Date: Mon, 11 Dec 2017 15:39:01 +0200 Subject: [PATCH] oops, forgot the logged in test --- tests/LandingPage/test_views.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/LandingPage/test_views.py b/tests/LandingPage/test_views.py index 998dbdc..d2322cd 100644 --- a/tests/LandingPage/test_views.py +++ b/tests/LandingPage/test_views.py @@ -40,6 +40,9 @@ class TestLogin(TestCase): self.assertEqual(user.email,'johnsmith@gmail.com') self.assertEqual(user.display_name, 'Mr. Smith') + # Check that the user has been logged in + self.assertEqual(client.get('/').context['user'], user) + def test_reject_bad_state(self): with responses.RequestsMock() as rm: client = Client() @@ -73,6 +76,9 @@ class TestLogin(TestCase): self.assertEqual(user.email,'johnsmith@gmail.com') self.assertEqual(user.display_name, 'Mr. Smith') + # Check that the user has been logged in + self.assertEqual(client.get('/').context['user'], user) + def test_states_unique(self): with responses.RequestsMock() as rm: client1 = Client()