aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_protocol_http.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2016-01-27 10:12:18 +0100
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2016-01-27 10:36:28 +0100
commit8c375383148f100f03aed52827ac513f145078c2 (patch)
treedbae3b5d4d603e5e226477f1938119e2acfcfc1f /test/test_protocol_http.py
parentc2bb29f669cd80509f4efe205551a9cf5fc29770 (diff)
downloadmitmproxy-8c375383148f100f03aed52827ac513f145078c2.tar.gz
mitmproxy-8c375383148f100f03aed52827ac513f145078c2.tar.bz2
mitmproxy-8c375383148f100f03aed52827ac513f145078c2.zip
code formatting: fix whitespace issues
Diffstat (limited to 'test/test_protocol_http.py')
-rw-r--r--test/test_protocol_http.py6
1 files changed, 5 insertions, 1 deletions
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"