diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2011-01-28 12:07:27 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2011-01-28 12:08:25 +1300 |
commit | dfefe3cdda9acd94032e100d0507f9c73ed8cd36 (patch) | |
tree | ab6b24ac8efff50571d3ac7f5fc14a515e3ebcf6 /test | |
parent | 93ef691badcdaa1b7a5801eb40982c69f9b89534 (diff) | |
download | mitmproxy-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.py | 5 |
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(), |