diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-10-09 00:15:39 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-10-09 00:15:39 +0200 |
commit | 9ef84ccc1cdd0d8da890ba012812c760e31f2fab (patch) | |
tree | f92e7219ceed5397be90f1a1659b5be15f1c8ec2 /test/test_certutils.py | |
parent | fdb6f5552d43d7ab02320ccd7e6d58750e33c4c4 (diff) | |
download | mitmproxy-9ef84ccc1cdd0d8da890ba012812c760e31f2fab.tar.gz mitmproxy-9ef84ccc1cdd0d8da890ba012812c760e31f2fab.tar.bz2 mitmproxy-9ef84ccc1cdd0d8da890ba012812c760e31f2fab.zip |
clean up code
Diffstat (limited to 'test/test_certutils.py')
-rw-r--r-- | test/test_certutils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_certutils.py b/test/test_certutils.py index f68751ec..59c9dcd5 100644 --- a/test/test_certutils.py +++ b/test/test_certutils.py @@ -52,7 +52,7 @@ class TestCertStore: assert ca.get_cert("*.foo.com", []) r = ca.get_cert("*.foo.com", []) - assert r[1] == ca.default_pkey + assert r[1] == ca.default_privatekey def test_add_cert(self): with tutils.tmpdir() as d: @@ -98,7 +98,7 @@ class TestCertStore: cert = ca1.get_cert("foo.com", []) assert certffi.get_flags(ca2.gen_pkey(cert[0])) == 1 finally: - certffi.set_flags(ca2.default_pkey, 0) + certffi.set_flags(ca2.default_privatekey, 0) class TestDummyCert: @@ -106,7 +106,7 @@ class TestDummyCert: with tutils.tmpdir() as d: ca = certutils.CertStore.from_store(d, "test") r = certutils.dummy_cert( - ca.default_pkey, + ca.default_privatekey, ca.default_ca, "foo.com", ["one.com", "two.com", "*.three.com"] |