aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2016-12-16 11:47:59 +1300
committerAldo Cortesi <aldo@nullcube.com>2016-12-16 11:57:45 +1300
commite387c68b387a0c664743d416d9b32a669f3c1c16 (patch)
tree10ad513c0a14cbe273d6aa6bd4677734af7370c1 /test
parent6b5673e84911f3e2b1599c22c9b4f482a55b9ef1 (diff)
downloadmitmproxy-e387c68b387a0c664743d416d9b32a669f3c1c16.tar.gz
mitmproxy-e387c68b387a0c664743d416d9b32a669f3c1c16.tar.bz2
mitmproxy-e387c68b387a0c664743d416d9b32a669f3c1c16.zip
console: mark view indiciator, fix empty flow list behaviour
Fixes #1782
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/addons/test_view.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/mitmproxy/addons/test_view.py b/test/mitmproxy/addons/test_view.py
index 27e10058..96f213e2 100644
--- a/test/mitmproxy/addons/test_view.py
+++ b/test/mitmproxy/addons/test_view.py
@@ -123,6 +123,11 @@ def test_filter():
v.set_filter(None)
assert len(v) == 4
+ v.toggle_marked()
+ assert len(v) == 0
+ v.toggle_marked()
+ assert len(v) == 4
+
v[1].marked = True
v.toggle_marked()
assert len(v) == 1