diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2015-06-07 13:18:33 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2015-06-07 13:18:33 +1200 |
commit | 0da3e51e1c08eed2c8054d4a71bc591268b19af1 (patch) | |
tree | a96991a862c05881bf57636135024155a0d787c1 /test/test_cmdline.py | |
parent | 7412ec83f55e6a9dcdde84603b88cd67bbf8b04d (diff) | |
download | mitmproxy-0da3e51e1c08eed2c8054d4a71bc591268b19af1.tar.gz mitmproxy-0da3e51e1c08eed2c8054d4a71bc591268b19af1.tar.bz2 mitmproxy-0da3e51e1c08eed2c8054d4a71bc591268b19af1.zip |
Make parse_pathoc a generator
This lets us do things like this:
get:/:ir,@1:x1000000000
It will also let us expand the language to include a "repeat forever" concept.
Diffstat (limited to 'test/test_cmdline.py')
-rw-r--r-- | test/test_cmdline.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_cmdline.py b/test/test_cmdline.py index b9607029..c1b55608 100644 --- a/test/test_cmdline.py +++ b/test/test_cmdline.py @@ -135,7 +135,7 @@ def test_pathoc(perror): tutils.test_data.path("data/request") ] ) - assert len(a.requests) == 1 + assert len(list(a.requests)) == 1 a = cmdline.args_pathod( [ |