diff options
author | madt1m <blackjuniper@protonmail.com> | 2018-06-13 17:39:46 +0200 |
---|---|---|
committer | madt1m <blackjuniper@protonmail.com> | 2018-06-13 17:39:46 +0200 |
commit | af54c260143f378bc71e3eba836544a59e9a2736 (patch) | |
tree | c64dd533876b1de117323c02c999c734133cfaaf /test | |
parent | 40faf2c662368b74745031906219e7f9d1a5a4e1 (diff) | |
download | mitmproxy-af54c260143f378bc71e3eba836544a59e9a2736.tar.gz mitmproxy-af54c260143f378bc71e3eba836544a59e9a2736.tar.bz2 mitmproxy-af54c260143f378bc71e3eba836544a59e9a2736.zip |
fixed exception type; full coverage on view
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/addons/test_view.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/mitmproxy/addons/test_view.py b/test/mitmproxy/addons/test_view.py index e840eac6..976c14b7 100644 --- a/test/mitmproxy/addons/test_view.py +++ b/test/mitmproxy/addons/test_view.py @@ -123,6 +123,9 @@ def test_filter(): v.toggle_marked() assert len(v) == 4 + with pytest.raises(exceptions.CommandError): + v.set_filter_cmd("~notafilter regex") + v[1].marked = True v.toggle_marked() assert len(v) == 1 @@ -320,6 +323,8 @@ def test_order(): v.set_reversed(False) assert [i.request.timestamp_start for i in v] == [1, 2, 3, 4] + with pytest.raises(exceptions.CommandError): + v.set_order("not_an_order") def test_reversed(): |