diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-02-18 12:27:59 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-02-18 12:27:59 +1300 |
commit | acdc2d00b4779a8c67107794a2bc66d66036c268 (patch) | |
tree | a4efbf9fce9e1df547a514706c40856292197702 /test/test_console.py | |
parent | 14def89f5038cdcad643bc0f9e9353c408b94626 (diff) | |
download | mitmproxy-acdc2d00b4779a8c67107794a2bc66d66036c268.tar.gz mitmproxy-acdc2d00b4779a8c67107794a2bc66d66036c268.tar.bz2 mitmproxy-acdc2d00b4779a8c67107794a2bc66d66036c268.zip |
Repair unit tests.
Diffstat (limited to 'test/test_console.py')
-rw-r--r-- | test/test_console.py | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/test/test_console.py b/test/test_console.py index 6db2f994..cad61322 100644 --- a/test/test_console.py +++ b/test/test_console.py @@ -90,36 +90,6 @@ class uformat_keyvals(libpry.AutoTree): ) -class uformat_flow(libpry.AutoTree): - def test_simple(self): - f = tutils.tflow() - foc = ('focus', '>>') - assert foc not in common.format_flow(f, False) - assert foc in common.format_flow(f, True) - - assert foc not in common.format_flow(f, False, True) - assert foc in common.format_flow(f, True, True) - - f.response = tutils.tresp() - f.request = f.response.request - f.backup() - - f.request._set_replay() - f.response._set_replay() - assert ('method', '[replay]') in common.format_flow(f, True) - assert ('method', '[replay]') in common.format_flow(f, True, True) - - f.response.code = 404 - assert ('error', '404') in common.format_flow(f, True, True) - f.response.headers["content-type"] = ["text/html"] - assert ('text', ' text/html') in common.format_flow(f, True, True) - - f.response =None - f.error = flow.Error(f.request, "error") - assert ('error', 'error') in common.format_flow(f, True, True) - - - class uPathCompleter(libpry.AutoTree): def test_lookup_construction(self): c = console._PathCompleter() @@ -169,7 +139,6 @@ class uOptions(libpry.AutoTree): tests = [ uformat_keyvals(), - uformat_flow(), uState(), uPathCompleter(), uOptions() |