aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_pathod.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-06-21 10:56:30 +1200
committerAldo Cortesi <aldo@nullcube.com>2012-06-21 10:56:30 +1200
commit1089a52f3d16c4fef504586cae18a5d324e8d75c (patch)
tree3616be49d90c63d3366254fa8b6894844c6484c9 /test/test_pathod.py
parentde00497b4098fece043a1550a94e112829bcbceb (diff)
downloadmitmproxy-1089a52f3d16c4fef504586cae18a5d324e8d75c.tar.gz
mitmproxy-1089a52f3d16c4fef504586cae18a5d324e8d75c.tar.bz2
mitmproxy-1089a52f3d16c4fef504586cae18a5d324e8d75c.zip
Disconnect, rest refactoring.
Diffstat (limited to 'test/test_pathod.py')
-rw-r--r--test/test_pathod.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test_pathod.py b/test/test_pathod.py
index 3fd2388a..36a2d090 100644
--- a/test/test_pathod.py
+++ b/test/test_pathod.py
@@ -1,7 +1,6 @@
from libpathod import pathod
-from tornado import httpserver
-class TestApplication:
+class _TestApplication:
def test_anchors(self):
a = pathod.PathodApp(staticdir=None)
a.add_anchor("/foo", "200")
@@ -30,6 +29,7 @@ class TestApplication:
assert not a.log_by_id(0)
-def test_make_server():
- app = pathod.PathodApp()
- assert pathod.make_server(app, 0, "127.0.0.1", None)
+class TestPathod:
+ def test_instantiation(self):
+ pathod.Pathod(("127.0.0.1", 0))
+