diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-06-09 13:42:43 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-06-09 13:42:43 +1200 |
commit | b7b357528c3d3867f1a29400de3a11f2d976e60d (patch) | |
tree | 2312713e8c01d8532e2f5f12b31e97a3688eba15 /test/test_wsgi.py | |
parent | a63240a8483c0bbc52218380c0c70da46a29f75b (diff) | |
download | mitmproxy-b7b357528c3d3867f1a29400de3a11f2d976e60d.tar.gz mitmproxy-b7b357528c3d3867f1a29400de3a11f2d976e60d.tar.bz2 mitmproxy-b7b357528c3d3867f1a29400de3a11f2d976e60d.zip |
Port mitmproxy test suite entirely to nose.
Diffstat (limited to 'test/test_wsgi.py')
-rw-r--r-- | test/test_wsgi.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/test/test_wsgi.py b/test/test_wsgi.py index ab2e2668..1ae81d11 100644 --- a/test/test_wsgi.py +++ b/test/test_wsgi.py @@ -1,5 +1,4 @@ import cStringIO, sys -import libpry from libmproxy import wsgi import tutils @@ -16,7 +15,7 @@ class TestApp: return ['Hello', ' world!\n'] -class uWSGIAdaptor(libpry.AutoTree): +class TestWSGIAdaptor: def test_make_environ(self): w = wsgi.WSGIAdaptor(None, "foo", 80) tr = tutils.treq() @@ -97,7 +96,7 @@ class uWSGIAdaptor(libpry.AutoTree): assert "Internal Server Error" in self._serve(app) -class uAppRegistry(libpry.AutoTree): +class TestAppRegistry: def test_add_get(self): ar = wsgi.AppRegistry() ar.add("foo", "domain", 80) @@ -109,9 +108,3 @@ class uAppRegistry(libpry.AutoTree): r.port = 81 assert not ar.get(r) - - -tests = [ - uWSGIAdaptor(), - uAppRegistry() -] |