diff options
Diffstat (limited to 'test/test_fuzzing.py')
-rw-r--r-- | test/test_fuzzing.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/test_fuzzing.py b/test/test_fuzzing.py index 857a2b10..ba7b751c 100644 --- a/test/test_fuzzing.py +++ b/test/test_fuzzing.py @@ -25,3 +25,15 @@ class TestFuzzy(tservers.HTTPProxTest): req = 'get:"http://localhost:%s":i13,"["' p = self.pathoc() assert p.request(req%self.server.port).status_code == 400 + + def test_invalid_upstream(self): + req = r"get:'http://localhost:%s/p/200:i10,\'+\''" + p = self.pathoc() + assert p.request(req%self.server.port).status_code == 502 + + def test_upstream_disconnect(self): + req = r'200:d0:h"Date"="Sun, 03 Mar 2013 04:00:00 GMT"' + p = self.pathod(req) + assert p.status_code == 400 + + |