From 9b9f6720e079669fd884d83f6b69833e20d03ff7 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Mon, 3 May 2021 20:35:35 +0100 Subject: not found now does 404 & moved login --- core/TESTS/tests_caves.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/TESTS/tests_caves.py') diff --git a/core/TESTS/tests_caves.py b/core/TESTS/tests_caves.py index 8a08c71..13152f7 100644 --- a/core/TESTS/tests_caves.py +++ b/core/TESTS/tests_caves.py @@ -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) -- cgit v1.2.3