diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-08-01 10:40:19 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-08-01 14:37:32 +0200 |
commit | db02553e2afee044faac898d12bd8d1adadbcd21 (patch) | |
tree | 1e5910599b7b47c527528f03f896efd2fbf7c907 /test/test_console_contentview.py | |
parent | 8a051511706e2e62c32e0f70e05ecab11d444b6f (diff) | |
download | mitmproxy-db02553e2afee044faac898d12bd8d1adadbcd21.tar.gz mitmproxy-db02553e2afee044faac898d12bd8d1adadbcd21.tar.bz2 mitmproxy-db02553e2afee044faac898d12bd8d1adadbcd21.zip |
move code from mitmproxy to netlib
Diffstat (limited to 'test/test_console_contentview.py')
-rw-r--r-- | test/test_console_contentview.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test_console_contentview.py b/test/test_console_contentview.py index f2d82419..b98e1021 100644 --- a/test/test_console_contentview.py +++ b/test/test_console_contentview.py @@ -4,7 +4,9 @@ if os.name == "nt": raise SkipTest("Skipped on Windows.") import sys +import netlib.utils from netlib import odict + import libmproxy.console.contentview as cv from libmproxy import utils, flow, encoding import tutils @@ -65,10 +67,10 @@ class TestContentView: assert f[0].startswith("XML") def test_view_urlencoded(self): - d = utils.urlencode([("one", "two"), ("three", "four")]) + d = netlib.utils.urlencode([("one", "two"), ("three", "four")]) v = cv.ViewURLEncoded() assert v([], d, 100) - d = utils.urlencode([("adsfa", "")]) + d = netlib.utils.urlencode([("adsfa", "")]) v = cv.ViewURLEncoded() assert v([], d, 100) |