aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_console_help.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-06-09 13:42:43 +1200
committerAldo Cortesi <aldo@nullcube.com>2012-06-09 13:42:43 +1200
commitb7b357528c3d3867f1a29400de3a11f2d976e60d (patch)
tree2312713e8c01d8532e2f5f12b31e97a3688eba15 /test/test_console_help.py
parenta63240a8483c0bbc52218380c0c70da46a29f75b (diff)
downloadmitmproxy-b7b357528c3d3867f1a29400de3a11f2d976e60d.tar.gz
mitmproxy-b7b357528c3d3867f1a29400de3a11f2d976e60d.tar.bz2
mitmproxy-b7b357528c3d3867f1a29400de3a11f2d976e60d.zip
Port mitmproxy test suite entirely to nose.
Diffstat (limited to 'test/test_console_help.py')
-rw-r--r--test/test_console_help.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/test/test_console_help.py b/test/test_console_help.py
index e747635f..c9ef7228 100644
--- a/test/test_console_help.py
+++ b/test/test_console_help.py
@@ -1,5 +1,4 @@
import sys
-import libpry
import libmproxy.console.help as help
from libmproxy import utils, flow, encoding
@@ -8,7 +7,7 @@ class DummyMaster:
pass
-class uHelp(libpry.AutoTree):
+class TestHelp:
def test_helptext(self):
h = help.HelpView(None, "foo", None)
assert h.helptext()
@@ -18,8 +17,3 @@ class uHelp(libpry.AutoTree):
assert not h.keypress((0, 0), "q")
assert not h.keypress((0, 0), "?")
assert h.keypress((0, 0), "o") == "o"
-
-
-tests = [
- uHelp()
-]