diff options
| author | Aldo Cortesi <aldo@nullcube.com> | 2012-06-13 18:16:47 +1200 |
|---|---|---|
| committer | Aldo Cortesi <aldo@nullcube.com> | 2012-06-13 18:16:47 +1200 |
| commit | 8a9352b3f7e49f169b8bffeab765c3e74d9d7833 (patch) | |
| tree | 2750aeee2524fae35a585725078ac38515f32a41 /test | |
| parent | d032504b17daf9e057172afa2e36b9206db5cac1 (diff) | |
| download | mitmproxy-8a9352b3f7e49f169b8bffeab765c3e74d9d7833.tar.gz mitmproxy-8a9352b3f7e49f169b8bffeab765c3e74d9d7833.tar.bz2 mitmproxy-8a9352b3f7e49f169b8bffeab765c3e74d9d7833.zip | |
First draft conversion of server to PyOpenSSL.
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_server.py | 3 | ||||
| -rw-r--r-- | test/tutils.py | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/test/test_server.py b/test/test_server.py index d0e5d652..296333d8 100644 --- a/test/test_server.py +++ b/test/test_server.py @@ -16,6 +16,9 @@ class Sanity(tutils.ProxTest): assert self.pathod("304").status_code == 304 assert self.log() + def test_large(self): + assert len(self.pathod("200:b@500k").content) == 1024*500 + class TestHTTP(Sanity): pass diff --git a/test/tutils.py b/test/tutils.py index 74ce6ce6..2fdf51a8 100644 --- a/test/tutils.py +++ b/test/tutils.py @@ -1,5 +1,5 @@ import threading, Queue, time -import os, shutil,tempfile +import os, shutil, tempfile from contextlib import contextmanager import libpry from libmproxy import proxy, flow, controller, utils |
