aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2017-03-19 13:08:26 +1300
committerAldo Cortesi <aldo@corte.si>2017-03-19 13:08:26 +1300
commit475a4e3eb03e2a704f078e1bb7f11fd199b0bb52 (patch)
tree6f922e156f476637b709c8f1cf97ba0b0063ed6a /test
parent6f745b90a836e6eb5e78a670bb94a0125626ff20 (diff)
downloadmitmproxy-475a4e3eb03e2a704f078e1bb7f11fd199b0bb52.tar.gz
mitmproxy-475a4e3eb03e2a704f078e1bb7f11fd199b0bb52.tar.bz2
mitmproxy-475a4e3eb03e2a704f078e1bb7f11fd199b0bb52.zip
streamfile: add streamfile_filter and use it instead of filtstr
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/addons/test_streamfile.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/mitmproxy/addons/test_streamfile.py b/test/mitmproxy/addons/test_streamfile.py
index 3f78521c..bcb27c79 100644
--- a/test/mitmproxy/addons/test_streamfile.py
+++ b/test/mitmproxy/addons/test_streamfile.py
@@ -15,10 +15,12 @@ def test_configure(tmpdir):
with pytest.raises(exceptions.OptionsError):
tctx.configure(sa, streamfile=str(tmpdir))
with pytest.raises(Exception, match="Invalid filter"):
- tctx.configure(sa, streamfile=str(tmpdir.join("foo")), filtstr="~~")
- tctx.configure(sa, filtstr="foo")
+ tctx.configure(
+ sa, streamfile=str(tmpdir.join("foo")), streamfile_filter="~~"
+ )
+ tctx.configure(sa, streamfile_filter="foo")
assert sa.filt
- tctx.configure(sa, filtstr=None)
+ tctx.configure(sa, streamfile_filter=None)
assert not sa.filt