diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/test_command.py | 19 |
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: |