diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2021-05-04 15:48:11 +0100 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2021-05-04 15:48:11 +0100 |
commit | dc3379c1862219f02dbb697b201ada7f2027e808 (patch) | |
tree | 6cfdfe8c5e91c4773a6ae82cb5252c5da0287cfa /core/TESTS/tests.py | |
parent | b4abd7b6bcecf31dbcb29f87cb436e7282104bea (diff) | |
download | troggle-dc3379c1862219f02dbb697b201ada7f2027e808.tar.gz troggle-dc3379c1862219f02dbb697b201ada7f2027e808.tar.bz2 troggle-dc3379c1862219f02dbb697b201ada7f2027e808.zip |
fix end slash issue
Diffstat (limited to 'core/TESTS/tests.py')
-rw-r--r-- | core/TESTS/tests.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/TESTS/tests.py b/core/TESTS/tests.py index b8340c2..7f254c8 100644 --- a/core/TESTS/tests.py +++ b/core/TESTS/tests.py @@ -402,6 +402,16 @@ class PageTests(TestCase): 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_dwgallfiles_empty_slash(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() |