From 8bec99f858deb8aaf35b6502355e3e00a98ffed7 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 24 Jun 2012 19:12:52 +1200 Subject: Request service rendering. --- test/test_rparse.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/test_rparse.py') 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): -- cgit v1.2.3