From: Christian Heller Date: Wed, 27 Mar 2024 01:07:53 +0000 (+0100) Subject: Add test for nonsensical pages triggering 404. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/static/add_task?a=commitdiff_plain;h=36d71cd777259ad08da17aeb0b0ef05fc40156ca;p=plomtask Add test for nonsensical pages triggering 404. --- 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)