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_filt.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_filt.py')
-rw-r--r-- | test/test_filt.py | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/test/test_filt.py b/test/test_filt.py index 8e349d7c..287ef376 100644 --- a/test/test_filt.py +++ b/test/test_filt.py @@ -1,9 +1,8 @@ import cStringIO from libmproxy import filt, flow -import libpry -class uParsing(libpry.AutoTree): +class TestParsing: def _dump(self, x): c = cStringIO.StringIO() x.dump(fp=c) @@ -71,7 +70,7 @@ class uParsing(libpry.AutoTree): self._dump(a) -class uMatching(libpry.AutoTree): +class TestMatching: def req(self): conn = flow.ClientConnect(("one", 2222)) headers = flow.ODictCaseless() @@ -235,11 +234,3 @@ class uMatching(libpry.AutoTree): assert self.q("!~c 201 !~c 202", s) assert not self.q("!~c 201 !~c 200", s) - - - - -tests = [ - uMatching(), - uParsing() -] |