diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-05-29 13:33:20 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-05-29 13:43:20 +0200 |
commit | e2447406cc89c5a9c3e20f1faf4f5bb9fd2f55b7 (patch) | |
tree | b37af6f7e7658aa8d4851fde80928475840921f3 /test/mitmproxy/console/test_help.py | |
parent | 5c45ca7f9aba05849bd8db24bb58c1951f79e630 (diff) | |
download | mitmproxy-e2447406cc89c5a9c3e20f1faf4f5bb9fd2f55b7.tar.gz mitmproxy-e2447406cc89c5a9c3e20f1faf4f5bb9fd2f55b7.tar.bz2 mitmproxy-e2447406cc89c5a9c3e20f1faf4f5bb9fd2f55b7.zip |
more style cleanup
Diffstat (limited to 'test/mitmproxy/console/test_help.py')
-rw-r--r-- | test/mitmproxy/console/test_help.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/mitmproxy/console/test_help.py b/test/mitmproxy/console/test_help.py new file mode 100644 index 00000000..3c1cc57c --- /dev/null +++ b/test/mitmproxy/console/test_help.py @@ -0,0 +1,16 @@ +import mitmproxy.console.help as help +from .. import tutils + + +@tutils.skip_appveyor +class TestHelp: + + def test_helptext(self): + h = help.HelpView(None) + assert h.helptext() + + def test_keypress(self): + h = help.HelpView([1, 2, 3]) + assert not h.keypress((0, 0), "q") + assert not h.keypress((0, 0), "?") + assert h.keypress((0, 0), "o") == "o" |