aboutsummaryrefslogtreecommitdiffstats
path: root/test/mitmproxy/test_flow_export.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2016-10-20 12:36:26 +1300
committerGitHub <noreply@github.com>2016-10-20 12:36:26 +1300
commit711078ba3f63257df745bb3edd80a85717e94b20 (patch)
treed3116cd540faf01f272a0892fc6a9b83b4f6de8a /test/mitmproxy/test_flow_export.py
parentee56d3fae0baeef1f31a83db122dd832d4c0e07e (diff)
parent8430f857b504a3e7406dc36e54dc32783569d0dd (diff)
downloadmitmproxy-711078ba3f63257df745bb3edd80a85717e94b20.tar.gz
mitmproxy-711078ba3f63257df745bb3edd80a85717e94b20.tar.bz2
mitmproxy-711078ba3f63257df745bb3edd80a85717e94b20.zip
Merge pull request #1637 from cortesi/tatanetlib
This PR merges netlib into mitmproxy
Diffstat (limited to 'test/mitmproxy/test_flow_export.py')
-rw-r--r--test/mitmproxy/test_flow_export.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/mitmproxy/test_flow_export.py b/test/mitmproxy/test_flow_export.py
index aafd5a1c..df0ccb77 100644
--- a/test/mitmproxy/test_flow_export.py
+++ b/test/mitmproxy/test_flow_export.py
@@ -1,7 +1,7 @@
import re
-import netlib.tutils
-from netlib.http import Headers
+import mitmproxy.test.tutils
+from mitmproxy.net.http import Headers
from mitmproxy import export # heh
from . import tutils
@@ -20,15 +20,15 @@ def python_equals(testdata, text):
def req_get():
- return netlib.tutils.treq(method=b'GET', content=b'', path=b"/path?a=foo&a=bar&b=baz")
+ return mitmproxy.test.tutils.treq(method=b'GET', content=b'', path=b"/path?a=foo&a=bar&b=baz")
def req_post():
- return netlib.tutils.treq(method=b'POST', headers=())
+ return mitmproxy.test.tutils.treq(method=b'POST', headers=())
def req_patch():
- return netlib.tutils.treq(method=b'PATCH', path=b"/path?query=param")
+ return mitmproxy.test.tutils.treq(method=b'PATCH', path=b"/path?query=param")
class TestExportCurlCommand: