diff options
author | Ujjwal Verma <ujjwalverma1111@gmail.com> | 2017-02-03 02:58:02 +0530 |
---|---|---|
committer | Ujjwal Verma <ujjwalverma1111@gmail.com> | 2017-02-03 02:58:02 +0530 |
commit | e10c36fe1175219aa146fc326f0697dfd9872532 (patch) | |
tree | be5a3dacfc70bb2d9b6a5fa866d740afcc99dc7b /test | |
parent | 11b4b3209d734e2cbde84200ed3e0dd5a2b72436 (diff) | |
download | mitmproxy-e10c36fe1175219aa146fc326f0697dfd9872532.tar.gz mitmproxy-e10c36fe1175219aa146fc326f0697dfd9872532.tar.bz2 mitmproxy-e10c36fe1175219aa146fc326f0697dfd9872532.zip |
Added test
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/addons/test_view.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/mitmproxy/addons/test_view.py b/test/mitmproxy/addons/test_view.py index 99b12cb4..7145bfc8 100644 --- a/test/mitmproxy/addons/test_view.py +++ b/test/mitmproxy/addons/test_view.py @@ -108,6 +108,13 @@ def test_simple(): assert list(v) == [f, f3, f2] assert len(v._store) == 3 + f.marked = not f.marked + f2.marked = not f2.marked + v.clear_not_marked() + assert list(v) == [f, f2] + assert len(v) == 2 + assert len(v._store) == 2 + v.clear() assert len(v) == 0 assert len(v._store) == 0 |