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"
Example #2
0
 def test_keypress(self):
     master = DummyMaster()
     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"
 def test_helptext(self):
     h = help.HelpView(None)
     assert h.helptext()
Example #4
0
 def test_keypress(self):
     h = help.HelpView(DummyMaster(), "foo", [1, 2, 3])
     assert not h.keypress((0, 0), "q")
     assert not h.keypress((0, 0), "?")
     assert h.keypress((0, 0), "o") == "o"