From 10ad56c8533d0c56378bc0832985c5a41caa8935 Mon Sep 17 00:00:00 2001 From: Shadab Zafar Date: Sat, 30 Jul 2016 21:48:54 +0530 Subject: Rename "Limit" feature to "Filter View" --- test/mitmproxy/console/test_master.py | 2 +- test/mitmproxy/test_flow.py | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'test') diff --git a/test/mitmproxy/console/test_master.py b/test/mitmproxy/console/test_master.py index b84e4c1c..fcb87e1b 100644 --- a/test/mitmproxy/console/test_master.py +++ b/test/mitmproxy/console/test_master.py @@ -76,7 +76,7 @@ class TestConsoleState: self._add_response(c) self._add_request(c) self._add_response(c) - assert not c.set_limit("~s") + assert not c.set_view_filter("~s") assert len(c.view) == 3 assert c.focus == 0 diff --git a/test/mitmproxy/test_flow.py b/test/mitmproxy/test_flow.py index 74992130..d4bf764c 100644 --- a/test/mitmproxy/test_flow.py +++ b/test/mitmproxy/test_flow.py @@ -504,13 +504,13 @@ class TestState: c = flow.State() f = tutils.tflow() c.add_flow(f) - c.set_limit("~e") + c.set_view_filter("~e") assert not c.view f.error = tutils.terr() assert c.update_flow(f) assert c.view - def test_set_limit(self): + def test_set_view_filter(self): c = flow.State() f = tutils.tflow() @@ -519,24 +519,24 @@ class TestState: c.add_flow(f) assert len(c.view) == 1 - c.set_limit("~s") - assert c.limit_txt == "~s" + c.set_view_filter("~s") + assert c.filter_txt == "~s" assert len(c.view) == 0 f.response = HTTPResponse.wrap(netlib.tutils.tresp()) c.update_flow(f) assert len(c.view) == 1 - c.set_limit(None) + c.set_view_filter(None) assert len(c.view) == 1 f = tutils.tflow() c.add_flow(f) assert len(c.view) == 2 - c.set_limit("~q") + c.set_view_filter("~q") assert len(c.view) == 1 - c.set_limit("~s") + c.set_view_filter("~s") assert len(c.view) == 1 - assert "Invalid" in c.set_limit("~") + assert "Invalid" in c.set_view_filter("~") def test_set_intercept(self): c = flow.State() -- cgit v1.2.3