From adc34e6d2d07588d67bb36e3e60d43100d41ce48 Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Mon, 23 Nov 2020 17:05:54 +0100 Subject: [PATCH] new test for acces denied for /intern --- input/tests.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/input/tests.py b/input/tests.py index a5e94e9..a004e4f 100644 --- a/input/tests.py +++ b/input/tests.py @@ -18,5 +18,10 @@ class TestGranted(TestCase): self.assertEqual(obj2.granted,True) def test_source_link(self): - response = self.client.get('') + response = self.client.get('', follow=True) + #print (response.content) self.assertContains(response,'Sourcecode') + + def test_access_denied(self): + response = self.client.get('/intern', follow=True) + self.assertContains(response,'password')