aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_pathod.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-06-07 11:23:23 +1200
committerAldo Cortesi <aldo@nullcube.com>2012-06-07 11:23:23 +1200
commit14b2a69d2119d8b9d0260aa31190fc7869b45e05 (patch)
treec60d2ccfe7ca32a73b4c3847bff937ba89c1c001 /test/test_pathod.py
parentb5a74a26ee6548b493cdece5a05f4fcba71c0012 (diff)
downloadmitmproxy-14b2a69d2119d8b9d0260aa31190fc7869b45e05.tar.gz
mitmproxy-14b2a69d2119d8b9d0260aa31190fc7869b45e05.tar.bz2
mitmproxy-14b2a69d2119d8b9d0260aa31190fc7869b45e05.zip
Start building a Pathod unit testing truss.
- Add test.py, which will house the testing API. - Extend API with a shutdown method, used to terminate the test daemon. - Refactor to allow clean shutdown.
Diffstat (limited to 'test/test_pathod.py')
-rw-r--r--test/test_pathod.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_pathod.py b/test/test_pathod.py
index bb78e094..af02239e 100644
--- a/test/test_pathod.py
+++ b/test/test_pathod.py
@@ -57,7 +57,15 @@ class uPages(libpry.AutoTree):
assert "".join(page._write_buffer)
+class u_make_server(libpry.AutoTree):
+ def test_simple(self):
+ app = pathod.PathodApp()
+ assert pathod.make_server(app, 0, "127.0.0.1", None)
+
+
tests = [
uApplication(),
+ #uPages(),
+ u_make_server()
]