aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMiroslav <ttahabatt@gmail.com>2018-02-20 16:25:39 +0200
committerMiroslav <ttahabatt@gmail.com>2018-02-20 16:25:39 +0200
commitaea6fd28c8eb5f65aa883f50244c936970b15ed9 (patch)
tree120609d6615dce611e14366fdea2fa52f076418d /test
parent1d23d50a9d1f4d4c864aa982df3274e344aa0a46 (diff)
downloadmitmproxy-aea6fd28c8eb5f65aa883f50244c936970b15ed9.tar.gz
mitmproxy-aea6fd28c8eb5f65aa883f50244c936970b15ed9.tar.bz2
mitmproxy-aea6fd28c8eb5f65aa883f50244c936970b15ed9.zip
Hotkeys cleanup
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/contentviews/test_api.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/test/mitmproxy/contentviews/test_api.py b/test/mitmproxy/contentviews/test_api.py
index c072c86f..e99e67db 100644
--- a/test/mitmproxy/contentviews/test_api.py
+++ b/test/mitmproxy/contentviews/test_api.py
@@ -22,13 +22,6 @@ def test_add_remove():
with pytest.raises(ContentViewException, match="Duplicate view"):
contentviews.add(tcv)
- tcv2 = TestContentView()
- tcv2.name = "test2"
- tcv2.prompt = ("test2", "t")
- # Same shortcut doesn't work either.
- with pytest.raises(ContentViewException, match="Duplicate view shortcut"):
- contentviews.add(tcv2)
-
contentviews.remove(tcv)
assert tcv not in contentviews.views
@@ -88,6 +81,3 @@ def test_get_message_content_view():
assert list(lines) == [[("error", "content missing")]]
-def test_get_by_shortcut():
- assert contentviews.get_by_shortcut("s")
- assert not contentviews.get_by_shortcut("b")