mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
clientcert tests: fix whitespace
This commit is contained in:
parent
7b093b46b6
commit
f8d8a80bd0
@ -324,6 +324,7 @@ class TestHTTPS(tservers.HTTPProxTest, CommonMixin, TcpMixin):
|
|||||||
assert self.server.last_log()["request"]["clientcert"]["keyinfo"]
|
assert self.server.last_log()["request"]["clientcert"]["keyinfo"]
|
||||||
finally:
|
finally:
|
||||||
self.config.clientcerts = None
|
self.config.clientcerts = None
|
||||||
|
|
||||||
def test_clientcert_dir(self):
|
def test_clientcert_dir(self):
|
||||||
try:
|
try:
|
||||||
self.config.clientcerts = tutils.test_data.path("data/clientcert")
|
self.config.clientcerts = tutils.test_data.path("data/clientcert")
|
||||||
@ -332,6 +333,7 @@ class TestHTTPS(tservers.HTTPProxTest, CommonMixin, TcpMixin):
|
|||||||
assert self.server.last_log()["request"]["clientcert"]["keyinfo"]
|
assert self.server.last_log()["request"]["clientcert"]["keyinfo"]
|
||||||
finally:
|
finally:
|
||||||
self.config.clientcerts = None
|
self.config.clientcerts = None
|
||||||
|
|
||||||
def test_error_post_connect(self):
|
def test_error_post_connect(self):
|
||||||
p = self.pathoc()
|
p = self.pathoc()
|
||||||
assert p.request("get:/:i0,'invalid\r\n\r\n'").status_code == 400
|
assert p.request("get:/:i0,'invalid\r\n\r\n'").status_code == 400
|
||||||
|
Loading…
Reference in New Issue
Block a user