home · contact · privacy
Add test for nonsensical pages triggering 404.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 27 Mar 2024 01:07:53 +0000 (02:07 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 27 Mar 2024 01:07:53 +0000 (02:07 +0100)
tests/days.py

index c6fdcc783db16bdd637d7944ced84ddfe19a2622..7cb0f4fa6c9da13e8064e7e51a8c40e7284c7375 100644 (file)
@@ -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)