aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_certutils.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-05-27 11:18:54 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-05-27 11:19:11 +0200
commite3d390e036430b9d7cc4b93679229fe118eb583a (patch)
tree1f10a2a59c8abef4bd24c8189d14602264b20fad /test/test_certutils.py
parentf7b75ba8c21c66e38da81adf3b2c573b7dae87f3 (diff)
downloadmitmproxy-e3d390e036430b9d7cc4b93679229fe118eb583a.tar.gz
mitmproxy-e3d390e036430b9d7cc4b93679229fe118eb583a.tar.bz2
mitmproxy-e3d390e036430b9d7cc4b93679229fe118eb583a.zip
cleanup code with autopep8
run the following command: $ autopep8 -i -r -a -a .
Diffstat (limited to 'test/test_certutils.py')
-rw-r--r--test/test_certutils.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_certutils.py b/test/test_certutils.py
index c96c5087..4af0197f 100644
--- a/test/test_certutils.py
+++ b/test/test_certutils.py
@@ -34,6 +34,7 @@ import tutils
class TestCertStore:
+
def test_create_explicit(self):
with tutils.tmpdir() as d:
ca = certutils.CertStore.from_store(d, "test")
@@ -102,6 +103,7 @@ class TestCertStore:
class TestDummyCert:
+
def test_with_ca(self):
with tutils.tmpdir() as d:
ca = certutils.CertStore.from_store(d, "test")
@@ -115,6 +117,7 @@ class TestDummyCert:
class TestSSLCert:
+
def test_simple(self):
with open(tutils.test_data.path("data/text_cert"), "rb") as f:
d = f.read()
@@ -152,5 +155,3 @@ class TestSSLCert:
d = f.read()
s = certutils.SSLCert.from_der(d)
assert s.cn
-
-