diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test_rparse.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/test_rparse.py b/test/test_rparse.py index 1527bddf..8d157a10 100644 --- a/test/test_rparse.py +++ b/test/test_rparse.py @@ -250,6 +250,34 @@ class TestParseRequest: r = rparse.parse_request({}, 'GET:"/foo"') assert str(r) + def test_multiline(self): + l = """ + GET + "/foo" + ir,@1 + """ + r = rparse.parse_request({}, l) + assert r.method == "GET" + assert r.path == "/foo" + assert r.actions + + + l = """ + GET + + "/foo + + + + bar" + + ir,@1 + """ + r = rparse.parse_request({}, l) + assert r.method == "GET" + assert r.path.s.endswith("bar") + assert r.actions + class TestParseResponse: def test_parse_err(self): |