aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_rparse.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_rparse.py')
-rw-r--r--test/test_rparse.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test_rparse.py b/test/test_rparse.py
index 5761d84a..a25bbc74 100644
--- a/test/test_rparse.py
+++ b/test/test_rparse.py
@@ -201,6 +201,16 @@ class TestParseRequest:
assert r.method == "GET"
assert r.path == "/foo"
+ def test_render(self):
+ s = cStringIO.StringIO()
+ r = rparse.parse_request({}, "GET:'/foo'")
+ assert r.serve(s)
+
+ def test_str(self):
+ r = rparse.parse_request({}, 'GET:"/foo"')
+ assert str(r)
+
+
class TestParseResponse:
def test_parse_err(self):