new test for acces denied for /intern

This commit is contained in:
Benni Baermann 2020-11-23 17:05:54 +01:00
parent 6659d1a4a0
commit adc34e6d2d

View file

@ -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,'<a href="https://srcsrv.wikimedia.de/beba/foerderbarometer">Sourcecode</a>')
def test_access_denied(self):
response = self.client.get('/intern', follow=True)
self.assertContains(response,'password')