diff options
Diffstat (limited to 'core/TESTS/tests_caves.py')
-rw-r--r-- | core/TESTS/tests_caves.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/core/TESTS/tests_caves.py b/core/TESTS/tests_caves.py index 0ff0f12..8a08c71 100644 --- a/core/TESTS/tests_caves.py +++ b/core/TESTS/tests_caves.py @@ -58,6 +58,19 @@ class FixtureTests(TestCase): self.assertIsNotNone(phmatch, "In fixture-loaded cave, failed to find expected text: '" + ph +"'") + def test_page_personexpedition(self): + response = self.client.get('/personexpedition/MichaelSargent/2019') + content = response.content.decode() + # with open('testresponse.html','w') as tr: + # tr.writelines(content) + self.assertEqual(response.status_code, 200) + for ph in [ r'Michael Sargent', + r'Table of all trips and surveys aligned by date' ]: + phmatch = re.search(ph, content) + self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph +"'") + # Need to add a fixture so that this actually has a logbook entry and a trip/svx in it. + + class FixturePageTests(TestCase): '''Currently nothing that runs troggle works - all do 404. Must be something in a template rendering crash? ordinary pages are OK, and expopages and expofiles are OK, even though they come through troggle. |