aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_filt.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-02-23 17:06:09 +1300
committerAldo Cortesi <aldo@nullcube.com>2012-02-23 17:06:09 +1300
commitddc9155c243f9ccb463a84f259837ef79d607d66 (patch)
tree9d264bc7efc410b2f4abf7ad5c9951bfc20acc6f /test/test_filt.py
parent2df9c52c097e9d1f7b4ba7f4f66094ef6cf27814 (diff)
downloadmitmproxy-ddc9155c243f9ccb463a84f259837ef79d607d66.tar.gz
mitmproxy-ddc9155c243f9ccb463a84f259837ef79d607d66.tar.bz2
mitmproxy-ddc9155c243f9ccb463a84f259837ef79d607d66.zip
Make "~q" filter work more intuitively.
It now matches any flow that has no response.
Diffstat (limited to 'test/test_filt.py')
-rw-r--r--test/test_filt.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/test_filt.py b/test/test_filt.py
index eb5bc135..61acbc7d 100644
--- a/test/test_filt.py
+++ b/test/test_filt.py
@@ -135,8 +135,7 @@ class uMatching(libpry.AutoTree):
s = self.resp()
assert self.q("~q", q)
- # FIXME
- assert self.q("~q", s)
+ assert not self.q("~q", s)
assert not self.q("~s", q)
assert self.q("~s", s)
@@ -226,8 +225,7 @@ class uMatching(libpry.AutoTree):
assert self.q("~c 200 | ~h nohead", s)
assert self.q("~c 201 | ~h head", s)
assert not self.q("~c 201 | ~h nohead", s)
- # FIXME
- #assert self.q("(~c 201 | ~h nohead) | ~s", s)
+ assert self.q("(~c 201 | ~h nohead) | ~s", s)
def test_not(self):
s = self.resp()