diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2015-06-04 20:36:50 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2015-06-04 20:36:50 +1200 |
commit | 07d5b90ebf190c4419f6b3f3d3cea1cf116ceecb (patch) | |
tree | 3a27d3c3e0b4985368fcd3a8153924c497162fbd /test/test_cmdline.py | |
parent | 182b79ab9ec3f59e17536b135e90eaa91e577111 (diff) | |
download | mitmproxy-07d5b90ebf190c4419f6b3f3d3cea1cf116ceecb.tar.gz mitmproxy-07d5b90ebf190c4419f6b3f3d3cea1cf116ceecb.tar.bz2 mitmproxy-07d5b90ebf190c4419f6b3f3d3cea1cf116ceecb.zip |
Shore up test suite.
Diffstat (limited to 'test/test_cmdline.py')
-rw-r--r-- | test/test_cmdline.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test_cmdline.py b/test/test_cmdline.py index 5a9ee242..b9607029 100644 --- a/test/test_cmdline.py +++ b/test/test_cmdline.py @@ -137,6 +137,16 @@ def test_pathoc(perror): ) assert len(a.requests) == 1 + a = cmdline.args_pathod( + [ + "pathod", + "-c", + "?" + ] + ) + assert perror.called + perror.reset_mock() + tutils.raises( SystemExit, cmdline.args_pathoc, |