home
·
contact
·
privacy
projects
/
plomtask
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b6002c
)
Add test for nonsensical pages triggering 404.
author
Christian Heller
<c.heller@plomlompom.de>
Wed, 27 Mar 2024 01:07:53 +0000
(
02:07
+0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Wed, 27 Mar 2024 01:07:53 +0000
(
02:07
+0100)
tests/days.py
patch
|
blob
|
history
diff --git
a/tests/days.py
b/tests/days.py
index c6fdcc783db16bdd637d7944ced84ddfe19a2622..7cb0f4fa6c9da13e8064e7e51a8c40e7284c7375 100644
(file)
--- 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)