diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2021-04-18 01:58:24 +0100 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2021-04-18 01:58:24 +0100 |
commit | e17a21defde917ac92aa9a5123bccabe3a3c2d47 (patch) | |
tree | 226425b22e6aad4890eec4b31fedf00b9cc40afd /core/TESTS/tests.py | |
parent | eea74406c9ba0e7554a75e98ae7bb6792a164e11 (diff) | |
download | troggle-e17a21defde917ac92aa9a5123bccabe3a3c2d47.tar.gz troggle-e17a21defde917ac92aa9a5123bccabe3a3c2d47.tar.bz2 troggle-e17a21defde917ac92aa9a5123bccabe3a3c2d47.zip |
Tests work on cave, person, expedition pages
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 946d579..aed66bb 100644 --- a/core/TESTS/tests.py +++ b/core/TESTS/tests.py @@ -158,6 +158,16 @@ class PageTests(TestCase): phmatch = re.search(ph, content) self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph +"'") + def test_page_ss(self): + response = self.client.get('/survey_scans/') + self.assertEqual(response.status_code, 200) + + ph = r'All Survey scans folders ' + content = response.content.decode() + phmatch = re.search(ph, content) + with open('ss-op.html', 'w') as f: + f.write(content) + self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph +"'") def test_page_admin(self): |