forked from expo/troggle
test checks that localsettings is not out of step with code too
This commit is contained in:
parent
4b1012cbb4
commit
5a64d9d3d0
@ -64,6 +64,14 @@ class PageTests(TestCase):
|
||||
phmatch = re.search(ph, content)
|
||||
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph +"'")
|
||||
|
||||
def test_expoweb_paths(self):
|
||||
response = self.client.get('/pathsreport')
|
||||
self.assertEqual(response.status_code, 200)
|
||||
content = response.content.decode()
|
||||
ph = r'This report is generated from'
|
||||
phmatch = re.search(ph, content)
|
||||
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph +"'")
|
||||
|
||||
def test_expoweb_dir(self):
|
||||
response = self.client.get('/handbook')
|
||||
content = response.content.decode()
|
||||
|
Loading…
Reference in New Issue
Block a user