From 36d71cd777259ad08da17aeb0b0ef05fc40156ca Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Wed, 27 Mar 2024 02:07:53 +0100 Subject: [PATCH] Add test for nonsensical pages triggering 404. --- tests/days.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/days.py b/tests/days.py index c6fdcc7..7cb0f4f 100644 --- a/tests/days.py +++ b/tests/days.py @@ -112,3 +112,5 @@ class TestsWithServer(TestCaseWithServer): response = self.conn.getresponse() self.assertEqual(response.status, 302) self.assertEqual(response.getheader('Location'), '/day') + self.conn.request('GET', '/foo') + self.assertEqual(self.conn.getresponse().status, 404) -- 2.30.2