aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2016-12-16 17:26:19 +1300
committerGitHub <noreply@github.com>2016-12-16 17:26:19 +1300
commit6695ce462405b8691a0cc4d8110f67f2bd871bc5 (patch)
tree59db0ec41e7ae47d906d841393b8dbf02430b9fc /test
parente769b1fa9a80c41bab0fa2a200f8c51fc10a3d32 (diff)
parente387c68b387a0c664743d416d9b32a669f3c1c16 (diff)
downloadmitmproxy-6695ce462405b8691a0cc4d8110f67f2bd871bc5.tar.gz
mitmproxy-6695ce462405b8691a0cc4d8110f67f2bd871bc5.tar.bz2
mitmproxy-6695ce462405b8691a0cc4d8110f67f2bd871bc5.zip
Merge pull request #1861 from cortesi/marking
console: mark view indiciator, fix empty flow list behaviour
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