Browse Source

new test for acces denied for /intern

master
Benni Baermann 4 years ago
parent
commit
adc34e6d2d
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      input/tests.py

+ 6
- 1
input/tests.py View File

@ -18,5 +18,10 @@ class TestGranted(TestCase):
self.assertEqual(obj2.granted,True) self.assertEqual(obj2.granted,True)
def test_source_link(self): 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>') 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')

Loading…
Cancel
Save