summaryrefslogtreecommitdiffstats
path: root/core/TESTS
diff options
context:
space:
mode:
Diffstat (limited to 'core/TESTS')
-rw-r--r--core/TESTS/tests.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/TESTS/tests.py b/core/TESTS/tests.py
index b376840..b8340c2 100644
--- a/core/TESTS/tests.py
+++ b/core/TESTS/tests.py
@@ -400,6 +400,16 @@ class PageTests(TestCase):
phmatch = re.search(ph, content)
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph +"'")
+ def test_page_dwgallfiles_empty(self):
+ # this gets an empty page as the database has not been loaded
+ response = self.client.get('/dwgfiles/')
+ self.assertEqual(response.status_code, 200)
+ content = response.content.decode()
+ for ph in [ r'All Tunnel and Therion files',
+ r'<th>Scans folder</th><th>Scan files</th><th>Frames</th></tr>']:
+ phmatch = re.search(ph, content)
+ self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph +"'")
+
def test_page_slash_empty(self):
# tslash where there should not be one
response = self.client.get('/expedition/1979/')