aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2017-04-30 14:20:21 +1200
committerAldo Cortesi <aldo@corte.si>2017-04-30 14:20:21 +1200
commited62bbad1d7b0e7f3f948e2cc1503687edafc811 (patch)
tree7b3a8e87693cd807ff78d696ef3e4e5974fc0f7c /test
parent075d452a6d4e9f21ffd7b3293ec9270ee961917a (diff)
downloadmitmproxy-ed62bbad1d7b0e7f3f948e2cc1503687edafc811.tar.gz
mitmproxy-ed62bbad1d7b0e7f3f948e2cc1503687edafc811.tar.bz2
mitmproxy-ed62bbad1d7b0e7f3f948e2cc1503687edafc811.zip
Add help text to --commands output
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/test_command.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/mitmproxy/test_command.py b/test/mitmproxy/test_command.py
index aef05adc..24d11d37 100644
--- a/test/mitmproxy/test_command.py
+++ b/test/mitmproxy/test_command.py
@@ -7,6 +7,7 @@ from mitmproxy import proxy
from mitmproxy import exceptions
from mitmproxy.test import tflow
from mitmproxy.test import taddons
+import io
import pytest
@@ -55,6 +56,10 @@ def test_simple():
c.add("empty", a.empty)
c.call("empty")
+ fp = io.StringIO()
+ c.dump(fp)
+ assert fp.getvalue()
+
def test_typename():
assert command.typename(str, True) == "str"