aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2016-09-10 10:21:52 +1200
committerAldo Cortesi <aldo@nullcube.com>2016-09-10 10:21:52 +1200
commit9b814ca067a81eed3c46bdffb7d3131b6ec26708 (patch)
tree81d69f6f427f2921244cc06cee89797f1ff13f1a /test
parent8677e91074deb79dbb5e52de4b34b506dc202da0 (diff)
downloadmitmproxy-9b814ca067a81eed3c46bdffb7d3131b6ec26708.tar.gz
mitmproxy-9b814ca067a81eed3c46bdffb7d3131b6ec26708.tar.bz2
mitmproxy-9b814ca067a81eed3c46bdffb7d3131b6ec26708.zip
options.replay_ignore* -> options.server_replay_ignore*
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/builtins/test_serverplayback.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/mitmproxy/builtins/test_serverplayback.py b/test/mitmproxy/builtins/test_serverplayback.py
index 65366dbb..4db509da 100644
--- a/test/mitmproxy/builtins/test_serverplayback.py
+++ b/test/mitmproxy/builtins/test_serverplayback.py
@@ -22,7 +22,7 @@ class TestServerPlayback:
def test_ignore_host(self):
sp = serverplayback.ServerPlayback()
- sp.configure(options.Options(replay_ignore_host=True), [])
+ sp.configure(options.Options(server_replay_ignore_host=True), [])
r = tutils.tflow(resp=True)
r2 = tutils.tflow(resp=True)
@@ -35,7 +35,7 @@ class TestServerPlayback:
def test_ignore_content(self):
s = serverplayback.ServerPlayback()
- s.configure(options.Options(replay_ignore_content=False), [])
+ s.configure(options.Options(server_replay_ignore_content=False), [])
r = tutils.tflow(resp=True)
r2 = tutils.tflow(resp=True)
@@ -46,7 +46,7 @@ class TestServerPlayback:
r2.request.content = b"bar"
assert not s._hash(r) == s._hash(r2)
- s.configure(options.Options(replay_ignore_content=True), [])
+ s.configure(options.Options(server_replay_ignore_content=True), [])
r = tutils.tflow(resp=True)
r2 = tutils.tflow(resp=True)
r.request.content = b"foo"
@@ -63,8 +63,8 @@ class TestServerPlayback:
s = serverplayback.ServerPlayback()
s.configure(
options.Options(
- replay_ignore_content=True,
- replay_ignore_payload_params=[
+ server_replay_ignore_content=True,
+ server_replay_ignore_payload_params=[
"param1", "param2"
]
),
@@ -87,8 +87,8 @@ class TestServerPlayback:
s = serverplayback.ServerPlayback()
s.configure(
options.Options(
- replay_ignore_content=False,
- replay_ignore_payload_params=[
+ server_replay_ignore_content=False,
+ server_replay_ignore_payload_params=[
"param1", "param2"
]
),
@@ -187,7 +187,7 @@ class TestServerPlayback:
s = serverplayback.ServerPlayback()
s.configure(
options.Options(
- replay_ignore_params=["param1", "param2"]
+ server_replay_ignore_params=["param1", "param2"]
),
[]
)
@@ -208,7 +208,7 @@ class TestServerPlayback:
s = serverplayback.ServerPlayback()
s.configure(
options.Options(
- replay_ignore_payload_params=["param1", "param2"]
+ server_replay_ignore_payload_params=["param1", "param2"]
),
[]
)