1
0
Fork 0
forked from s3lph/matemat

Added unit tests for pagelet and static resource serving.

This commit is contained in:
s3lph 2018-06-19 21:37:56 +02:00
parent 0bfd4efab9
commit 3b2d8ffa93

View file

@ -90,6 +90,7 @@ class TestServe(AbstractHttpdTest):
self.assertIsNone(packet.pagelet)
# Make sure a 403 header is served
self.assertEqual(403, packet.statuscode)
self.assertNotEqual('This should not be readable', packet.body)
def test_serve_not_found(self):
# Request a nonexistent resource