diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-06-09 15:08:51 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-06-09 15:08:51 +1200 |
commit | 00c8bef0ff21794e622b7f442408e29c644b7002 (patch) | |
tree | fe016e005c73f7403a7a94f6ac8cc606cb838040 /test/test_pathod.py | |
parent | 456b11df9a571e7f72570df1c5f6b4a59fd02c11 (diff) | |
download | mitmproxy-00c8bef0ff21794e622b7f442408e29c644b7002.tar.gz mitmproxy-00c8bef0ff21794e622b7f442408e29c644b7002.tar.bz2 mitmproxy-00c8bef0ff21794e622b7f442408e29c644b7002.zip |
Port test suite over to Nose.
Diffstat (limited to 'test/test_pathod.py')
-rw-r--r-- | test/test_pathod.py | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/test/test_pathod.py b/test/test_pathod.py index e4d959eb..3fd2388a 100644 --- a/test/test_pathod.py +++ b/test/test_pathod.py @@ -1,8 +1,7 @@ -import libpry from libpathod import pathod from tornado import httpserver -class uApplication(libpry.AutoTree): +class TestApplication: def test_anchors(self): a = pathod.PathodApp(staticdir=None) a.add_anchor("/foo", "200") @@ -31,13 +30,6 @@ class uApplication(libpry.AutoTree): assert not a.log_by_id(0) -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(), - u_make_server() -] +def test_make_server(): + app = pathod.PathodApp() + assert pathod.make_server(app, 0, "127.0.0.1", None) |