not found now does 404 & moved login

This commit is contained in:
Philip Sargent
2021-05-03 20:35:35 +01:00
parent 254b465755
commit 9b9f6720e0
8 changed files with 37 additions and 35 deletions

View File

@@ -156,11 +156,11 @@ class FixturePageTests(TestCase):
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph +"'")
def test_fix_cave_bare_url115(self):
'''Expect to get Page Not Found and status 200'''
'''Expect to get Page Not Found and status 404'''
ph = self.ph
ph = 'Probably a mistake.'
response = self.client.get('/1623/115')
self.assertEqual(response.status_code, 200)
self.assertEqual(response.status_code, 404)
content = response.content.decode()
phmatch = re.search(ph, content)
@@ -168,11 +168,11 @@ class FixturePageTests(TestCase):
def test_fix_cave_slug115(self):
'''Expect to get Page Not Found and status 200'''
'''Expect to get Page Not Found and status 404'''
ph = self.ph
ph = 'Probably a mistake.'
response = self.client.get('/1623-115')
self.assertEqual(response.status_code, 200)
self.assertEqual(response.status_code, 404)
content = response.content.decode()
phmatch = re.search(ph, content)