diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-07-06 22:21:44 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-07-06 22:21:44 +1200 |
commit | d02bcade3ab919da5133a32f2732e0a675fccc32 (patch) | |
tree | 71fe6e3bbf755b0aa1262a2b15561d669f2b56c8 /test | |
parent | c4426952ad5f2f48e4684d3a902e4a7a586545ce (diff) | |
download | mitmproxy-d02bcade3ab919da5133a32f2732e0a675fccc32.tar.gz mitmproxy-d02bcade3ab919da5133a32f2732e0a675fccc32.tar.bz2 mitmproxy-d02bcade3ab919da5133a32f2732e0a675fccc32.zip |
Add a domain match filter (~d regex)
Diffstat (limited to 'test')
-rw-r--r-- | test/test_filt.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_filt.py b/test/test_filt.py index 2421c327..1cea34c4 100644 --- a/test/test_filt.py +++ b/test/test_filt.py @@ -195,6 +195,12 @@ class TestMatching: q.request.method = "oink" assert not self.q("~m get", q) + def test_domain(self): + q = self.req() + s = self.resp() + assert self.q("~d host", q) + assert not self.q("~d none", q) + def test_url(self): q = self.req() s = self.resp() |