home · contact · privacy
Add test for nonsensical pages triggering 404.
[plomtask] / 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)