aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_server.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2014-03-10 17:24:05 +1300
committerAldo Cortesi <aldo@corte.si>2014-03-10 17:24:05 +1300
commit554deee222fa4d2100b93becc4dd06f7342e3694 (patch)
tree8acbf873630193e7bc34185f3a243e1aab408869 /test/test_server.py
parent2e50b1073538730fc5bd6369e2cb8176874f2f03 (diff)
parentdd3aedca01a61f2fe33d009320f7fe656f1fc671 (diff)
downloadmitmproxy-554deee222fa4d2100b93becc4dd06f7342e3694.tar.gz
mitmproxy-554deee222fa4d2100b93becc4dd06f7342e3694.tar.bz2
mitmproxy-554deee222fa4d2100b93becc4dd06f7342e3694.zip
Merge pull request #233 from mitmproxy/untangle_circular_dependencies
Untangle circular dependencies
Diffstat (limited to 'test/test_server.py')
-rw-r--r--test/test_server.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_server.py b/test/test_server.py
index ed21e75c..43ef546d 100644
--- a/test/test_server.py
+++ b/test/test_server.py
@@ -3,8 +3,8 @@ import mock
from netlib import tcp, http_auth, http
from libpathod import pathoc, pathod
import tutils, tservers
-from libmproxy import flow, proxy
from libmproxy.protocol import KILL
+from libmproxy.protocol.http import CONTENT_MISSING
"""
Note that the choice of response code in these tests matters more than you
@@ -381,7 +381,7 @@ class TestTransparentResolveError(tservers.TransparentProxTest):
class MasterIncomplete(tservers.TestMaster):
def handle_request(self, m):
resp = tutils.tresp()
- resp.content = flow.CONTENT_MISSING
+ resp.content = CONTENT_MISSING
m.reply(resp)