aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2017-12-17 11:23:15 +1300
committerAldo Cortesi <aldo@corte.si>2017-12-17 11:23:15 +1300
commita289db8d75dfc1afa5c45fbb419fdf113191ec2b (patch)
tree6ce3575e396b5d917d839435339e9bbc9f07fe91 /test
parente549b63465253a8b4cdb17efbf130e20371aa3b0 (diff)
downloadmitmproxy-a289db8d75dfc1afa5c45fbb419fdf113191ec2b.tar.gz
mitmproxy-a289db8d75dfc1afa5c45fbb419fdf113191ec2b.tar.bz2
mitmproxy-a289db8d75dfc1afa5c45fbb419fdf113191ec2b.zip
commands: minor refactoring and command renaming
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/test_command.py19
1 files changed, 9 insertions, 10 deletions
diff --git a/test/mitmproxy/test_command.py b/test/mitmproxy/test_command.py
index 47680c99..50ad3d55 100644
--- a/test/mitmproxy/test_command.py
+++ b/test/mitmproxy/test_command.py
@@ -151,19 +151,18 @@ def test_simple():
def test_typename():
- assert command.typename(str, True) == "str"
- assert command.typename(typing.Sequence[flow.Flow], True) == "[flow]"
- assert command.typename(typing.Sequence[flow.Flow], False) == "[flow]"
+ assert command.typename(str) == "str"
+ assert command.typename(typing.Sequence[flow.Flow]) == "[flow]"
- assert command.typename(command.Cuts, True) == "[cuts]"
- assert command.typename(typing.Sequence[command.Cut], False) == "[cut]"
+ assert command.typename(command.Cuts) == "[cuts]"
+ assert command.typename(typing.Sequence[command.Cut]) == "[cut]"
- assert command.typename(flow.Flow, False) == "flow"
- assert command.typename(typing.Sequence[str], False) == "[str]"
+ assert command.typename(flow.Flow) == "flow"
+ assert command.typename(typing.Sequence[str]) == "[str]"
- assert command.typename(command.Choice("foo"), False) == "choice"
- assert command.typename(command.Path, False) == "path"
- assert command.typename(command.Cmd, False) == "cmd"
+ assert command.typename(command.Choice("foo")) == "choice"
+ assert command.typename(command.Path) == "path"
+ assert command.typename(command.Cmd) == "cmd"
class DummyConsole: