forked from expo/troggle
not found now does 404 & moved login
This commit is contained in:
@@ -75,7 +75,7 @@ class PageTests(TestCase):
|
||||
def test_expoweb_dir_no_index(self):
|
||||
response = self.client.get('/handbook/troggle')
|
||||
content = response.content.decode()
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.assertEqual(response.status_code, 404)
|
||||
ph = r'Page not found handbook/troggle/index.html'
|
||||
phmatch = re.search(ph, content)
|
||||
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph +"'")
|
||||
@@ -116,7 +116,7 @@ class PageTests(TestCase):
|
||||
def test_expoweb_notfound(self):
|
||||
response = self.client.get('/handbook/zyxxypqrqx.html')
|
||||
content = response.content.decode()
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.assertEqual(response.status_code, 404)
|
||||
ph = r'<h1>Page not found'
|
||||
phmatch = re.search(ph, content)
|
||||
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph +"'")
|
||||
@@ -367,7 +367,7 @@ class PageTests(TestCase):
|
||||
def test_page_photos_not_ok(self):
|
||||
# Flat file tests.
|
||||
response = self.client.get('/photos/2018/PhilipSargent/corin.jpeg')
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.assertEqual(response.status_code, 404)
|
||||
content = response.content.decode()
|
||||
ph = r'<title>Page not found 2018/PhilipSargent/corin.jpeg</title>'
|
||||
phmatch = re.search(ph, content)
|
||||
|
||||
Reference in New Issue
Block a user