aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2011-01-28 12:07:27 +1300
committerAldo Cortesi <aldo@nullcube.com>2011-01-28 12:08:25 +1300
commitdfefe3cdda9acd94032e100d0507f9c73ed8cd36 (patch)
treeab6b24ac8efff50571d3ac7f5fc14a515e3ebcf6 /test
parent93ef691badcdaa1b7a5801eb40982c69f9b89534 (diff)
downloadmitmproxy-dfefe3cdda9acd94032e100d0507f9c73ed8cd36.tar.gz
mitmproxy-dfefe3cdda9acd94032e100d0507f9c73ed8cd36.tar.bz2
mitmproxy-dfefe3cdda9acd94032e100d0507f9c73ed8cd36.zip
Make pretty-printing more robust.
Also, since BeautifulSoup is so damn slow, print a statusbar message saying that we're calculating a pretty version of the response. Maybe I should add hangman or something, becuase on a 200k document this can take ages.
Diffstat (limited to 'test')
-rw-r--r--test/test_utils.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_utils.py b/test/test_utils.py
index 1c1e62e2..4880cc89 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -228,6 +228,11 @@ class uprettybody(libpry.AutoTree):
s = "<html><p></p></html>"
assert utils.prettybody(s)
+ s = "".join([chr(i) for i in range(256)])
+ print utils.prettybody(s)
+
+
+
tests = [
umake_bogus_cert(),