From 657973eca3b091cdf07a65f8363affd3d36f0d0f Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Wed, 22 Jul 2015 13:01:24 +0200 Subject: fix bugs --- test/http/http1/test_protocol.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'test') diff --git a/test/http/http1/test_protocol.py b/test/http/http1/test_protocol.py index 8d05b31f..dcebbd5e 100644 --- a/test/http/http1/test_protocol.py +++ b/test/http/http1/test_protocol.py @@ -8,12 +8,9 @@ from ... import tutils, tservers def mock_protocol(data='', chunked=False): - class TCPHandlerMock(object): - pass - tcp_handler = TCPHandlerMock() - tcp_handler.rfile = cStringIO.StringIO(data) - tcp_handler.wfile = cStringIO.StringIO() - return HTTP1Protocol(tcp_handler) + rfile = cStringIO.StringIO(data) + wfile = cStringIO.StringIO() + return HTTP1Protocol(rfile=rfile, wfile=wfile) -- cgit v1.2.3