aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_cmdline.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2015-06-07 13:18:33 +1200
committerAldo Cortesi <aldo@nullcube.com>2015-06-07 13:18:33 +1200
commit0da3e51e1c08eed2c8054d4a71bc591268b19af1 (patch)
treea96991a862c05881bf57636135024155a0d787c1 /test/test_cmdline.py
parent7412ec83f55e6a9dcdde84603b88cd67bbf8b04d (diff)
downloadmitmproxy-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.py2
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(
[