aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_tcp.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2014-10-09 00:15:39 +0200
committerMaximilian Hils <git@maximilianhils.com>2014-10-09 00:15:39 +0200
commit9ef84ccc1cdd0d8da890ba012812c760e31f2fab (patch)
treef92e7219ceed5397be90f1a1659b5be15f1c8ec2 /test/test_tcp.py
parentfdb6f5552d43d7ab02320ccd7e6d58750e33c4c4 (diff)
downloadmitmproxy-9ef84ccc1cdd0d8da890ba012812c760e31f2fab.tar.gz
mitmproxy-9ef84ccc1cdd0d8da890ba012812c760e31f2fab.tar.bz2
mitmproxy-9ef84ccc1cdd0d8da890ba012812c760e31f2fab.zip
clean up code
Diffstat (limited to 'test/test_tcp.py')
-rw-r--r--test/test_tcp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_tcp.py b/test/test_tcp.py
index 0eadac47..bf3d46bf 100644
--- a/test/test_tcp.py
+++ b/test/test_tcp.py
@@ -410,8 +410,8 @@ class TestPrivkeyGenNoFlags(test.ServerTestBase):
ca1 = certutils.CertStore.from_store(d, "test2")
ca2 = certutils.CertStore.from_store(d, "test3")
cert, _, _ = ca1.get_cert("foo.com", [])
- certffi.set_flags(ca2.default_pkey, 0)
- self.convert_to_ssl(cert, ca2.default_pkey)
+ certffi.set_flags(ca2.default_privatekey, 0)
+ self.convert_to_ssl(cert, ca2.default_privatekey)
def test_privkey(self):
c = tcp.TCPClient(("127.0.0.1", self.port))