From 8c375383148f100f03aed52827ac513f145078c2 Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Wed, 27 Jan 2016 10:12:18 +0100 Subject: code formatting: fix whitespace issues --- test/test_protocol_http.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/test_protocol_http.py') diff --git a/test/test_protocol_http.py b/test/test_protocol_http.py index c7c5c1b6..59ba6b15 100644 --- a/test/test_protocol_http.py +++ b/test/test_protocol_http.py @@ -8,6 +8,7 @@ import tservers class TestHTTPResponse: + def test_read_from_stringio(self): s = ( b"HTTP/1.1 200 OK\r\n" @@ -34,6 +35,7 @@ class TestHTTPResponse: class TestHTTPFlow(object): + def test_repr(self): f = tutils.tflow(resp=True, err=True) assert repr(f) @@ -57,6 +59,7 @@ class TestInvalidRequests(tservers.HTTPProxTest): class TestExpectHeader(tservers.HTTPProxTest): + def test_simple(self): client = TCPClient(("127.0.0.1", self.proxy.port)) client.connect() @@ -83,7 +86,8 @@ class TestExpectHeader(tservers.HTTPProxTest): class TestHeadContentLength(tservers.HTTPProxTest): + def test_head_content_length(self): p = self.pathoc() resp = p.request("""head:'%s/p/200:h"Content-Length"="42"'""" % self.server.urlbase) - assert resp.headers["Content-Length"] == "42" \ No newline at end of file + assert resp.headers["Content-Length"] == "42" -- cgit v1.2.3