From 3b2d8ffa935cd4bcd3db7fe7f41588c2f6d79605 Mon Sep 17 00:00:00 2001 From: s3lph Date: Tue, 19 Jun 2018 21:37:56 +0200 Subject: [PATCH] Added unit tests for pagelet and static resource serving. --- matemat/webserver/test/test_serve.py | 1 + 1 file changed, 1 insertion(+) diff --git a/matemat/webserver/test/test_serve.py b/matemat/webserver/test/test_serve.py index 0c59a0c..5fdc6ec 100644 --- a/matemat/webserver/test/test_serve.py +++ b/matemat/webserver/test/test_serve.py @@ -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