forked from expo/troggle
Tests work on cave, person, expedition pages
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user