diff options
author | ColdFire <9128903+fenilgandhi@users.noreply.github.com> | 2018-02-23 23:25:14 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-23 23:25:14 +0530 |
commit | 8008e25527be3322f97a8eb87369e30ccc1ff48d (patch) | |
tree | 8f26c321961bcee0fa10750c42ed2e5abc1d9bbd /test | |
parent | 777cb98a86f3e8883383935661e2ed20ed9b6bd4 (diff) | |
parent | 18384eecbd8fafca87d7ecaa79d366a5df1063e0 (diff) | |
download | mitmproxy-8008e25527be3322f97a8eb87369e30ccc1ff48d.tar.gz mitmproxy-8008e25527be3322f97a8eb87369e30ccc1ff48d.tar.bz2 mitmproxy-8008e25527be3322f97a8eb87369e30ccc1ff48d.zip |
Merge branch 'master' into issue-2872
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/test_command.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/mitmproxy/test_command.py b/test/mitmproxy/test_command.py index c777192d..e2b80753 100644 --- a/test/mitmproxy/test_command.py +++ b/test/mitmproxy/test_command.py @@ -211,6 +211,22 @@ class TestCommand: ], [] ], + [ + "flow \"one two", + [ + command.ParseResult(value = "flow", type = mitmproxy.types.Cmd, valid = True), + command.ParseResult(value = "\"one two", type = flow.Flow, valid = False), + ], + ["str"] + ], + [ + "flow \"one two\"", + [ + command.ParseResult(value = "flow", type = mitmproxy.types.Cmd, valid = True), + command.ParseResult(value = "one two", type = flow.Flow, valid = False), + ], + ["str"] + ], ] with taddons.context() as tctx: tctx.master.addons.add(TAddon()) |