From 10a19fc4da5a6fbbfd4a36d0e61d3bc80a38e937 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Wed, 26 Sep 2012 14:25:39 +1200 Subject: Refactor print_requests -> print_request - Change to handle one request at a time - Shift error handling around --- test/test_pathoc.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'test/test_pathoc.py') diff --git a/test/test_pathoc.py b/test/test_pathoc.py index ce1476a6..0a37c4b7 100644 --- a/test/test_pathoc.py +++ b/test/test_pathoc.py @@ -30,14 +30,15 @@ class TestDaemon: if timeout: c.settimeout(timeout) s = cStringIO.StringIO() - c.print_requests( - requests, - showreq = showreq, - showresp = showresp, - explain = explain, - hexdump = hexdump, - fp = s - ) + for i in requests: + c.print_request( + i, + showreq = showreq, + showresp = showresp, + explain = explain, + hexdump = hexdump, + fp = s + ) return s.getvalue() def test_timeout(self): -- cgit v1.2.3