aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_console_help.py
diff options
context:
space:
mode:
authorJim Shaver <dcypherd@gmail.com>2015-03-19 15:58:53 -0400
committerJim Shaver <dcypherd@gmail.com>2015-03-19 15:58:53 -0400
commit998c9c49c44969b0e5421c649cfb714e5f578dda (patch)
tree41821482f4bf1db2ebdb1d8aad2be9de40f2ccfd /test/test_console_help.py
parent36bec7b77e1a8c02211c706b3e651fee13a3b3e2 (diff)
parent97c6d7ed25e026ae8d5511550df9718f829a7f1e (diff)
downloadmitmproxy-998c9c49c44969b0e5421c649cfb714e5f578dda.tar.gz
mitmproxy-998c9c49c44969b0e5421c649cfb714e5f578dda.tar.bz2
mitmproxy-998c9c49c44969b0e5421c649cfb714e5f578dda.zip
Merge branch 'master' of github.com:mitmproxy/mitmproxy into ssldocs
Diffstat (limited to 'test/test_console_help.py')
-rw-r--r--test/test_console_help.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/test_console_help.py b/test/test_console_help.py
index 6e1f9fad..a410bd2e 100644
--- a/test/test_console_help.py
+++ b/test/test_console_help.py
@@ -5,7 +5,14 @@ if os.name == "nt":
import libmproxy.console.help as help
+class DummyLoop:
+ def __init__(self):
+ self.widget = None
+
class DummyMaster:
+ def __init__(self):
+ self.loop = DummyLoop()
+
def make_view(self):
pass
@@ -16,7 +23,8 @@ class TestHelp:
assert h.helptext()
def test_keypress(self):
- h = help.HelpView(DummyMaster(), "foo", [1, 2, 3])
+ master = DummyMaster()
+ h = help.HelpView(master, "foo", [1, 2, 3])
assert not h.keypress((0, 0), "q")
assert not h.keypress((0, 0), "?")
assert h.keypress((0, 0), "o") == "o"