summaryrefslogtreecommitdiffstats
path: root/core/TESTS/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'core/TESTS/tests.py')
-rw-r--r--core/TESTS/tests.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/core/TESTS/tests.py b/core/TESTS/tests.py
index 9ec0c57..8cd1f03 100644
--- a/core/TESTS/tests.py
+++ b/core/TESTS/tests.py
@@ -95,6 +95,21 @@ class PageTests(TestCase):
self.assertEqual(response.status_code, 200)
h1 = re.search(r'<h1 id="site-name">Troggle administration</h1>', content)
+ def test_page_admindocs(self):
+ # Issue a GET request.
+ response = self.client.get('/admin/login/models/')
+ content = response.content.decode()
+ self.assertEqual(response.status_code, 200)
+ h1 = re.search(r'<h1>Model documentation</h1>', content)
+
+ # database not loaded yet? Or logon-problem?
+ # def test_page_admindocs_exped(self):
+ # # Issue a GET request.
+ # response = self.client.get('/admin/doc/models/core.expedition/')
+ # content = response.content.decode()
+ # self.assertEqual(response.status_code, 200)
+ # h1 = re.search(r'<td>logbookentry_set.all</td>', content)
+
def test_page_folk(self):
# This page is separately generated, so it has the full data content
response = self.client.get('/folk/')
@@ -122,6 +137,7 @@ class PageTests(TestCase):
response = self.client.get('/survey_scans/')
self.assertEqual(response.status_code, 200)
+ # database not loaded yet:
#response = self.client.get('/survey_scans/1991surveybook/page0002.png')
#response = self.client.get('/survey_scans/1991surveybook/')
#content = response.content.decode()