From 2164e73579ce31d83756269752724bde6c2e3927 Mon Sep 17 00:00:00 2001 From: Nathan Cannon Date: Tue, 26 Jan 2016 21:25:00 +0000 Subject: [PATCH] Added additional quiz accessibility test. --- tests.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests.py b/tests.py index b37305c..7aa81f0 100644 --- a/tests.py +++ b/tests.py @@ -52,6 +52,12 @@ class TestLogin(BaseTestCase): response = self.client.get('/quiz') self.assertRedirects(response, '/') + def test_quiz_accessible_with_login(self): + self.login() + response = self.client.get('/quiz') + self.assert200(response) + self.assertTemplateUsed("quiz.html") + def test_user_items_inaccessible_without_login(self): response = self.client.get('/user_items') self.assertRedirects(response, '/')