diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2014-01-12 23:01:59 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2014-01-12 23:02:29 +1300 |
commit | 42d4a2fae96b8b4ba35d3a88e20f278d79a0ccc6 (patch) | |
tree | a6df6b73fa85e1a095e1db67ceafa0f0df551f2c /test/test_cmdline.py | |
parent | e5776b8be3ea36c065beabe416506871f34892e6 (diff) | |
download | mitmproxy-42d4a2fae96b8b4ba35d3a88e20f278d79a0ccc6.tar.gz mitmproxy-42d4a2fae96b8b4ba35d3a88e20f278d79a0ccc6.tar.bz2 mitmproxy-42d4a2fae96b8b4ba35d3a88e20f278d79a0ccc6.zip |
Script refactoring: move script command parsing into script module.
Diffstat (limited to 'test/test_cmdline.py')
-rw-r--r-- | test/test_cmdline.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/test/test_cmdline.py b/test/test_cmdline.py index 92e2adbd..dbc61bfc 100644 --- a/test/test_cmdline.py +++ b/test/test_cmdline.py @@ -40,19 +40,6 @@ def test_parse_setheaders(): x = cmdline.parse_setheader("/foo/bar/voing") assert x == ("foo", "bar", "voing") -def test_shlex(): - """ - shlex.split assumes posix=True by default, we do manual detection for windows. - Test whether script paths are parsed correctly - """ - absfilepath = os.path.normcase(os.path.abspath(__file__)) - - parser = argparse.ArgumentParser() - cmdline.common_options(parser) - opts = parser.parse_args(args=["-s",absfilepath]) - - assert os.path.isfile(opts.scripts[0][0]) - def test_common(): parser = argparse.ArgumentParser() cmdline.common_options(parser) |