aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_console_contentview.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-08-01 10:40:19 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-08-01 14:37:32 +0200
commitdb02553e2afee044faac898d12bd8d1adadbcd21 (patch)
tree1e5910599b7b47c527528f03f896efd2fbf7c907 /test/test_console_contentview.py
parent8a051511706e2e62c32e0f70e05ecab11d444b6f (diff)
downloadmitmproxy-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.py6
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)