aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_certutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_certutils.py')
-rw-r--r--test/test_certutils.py20
1 files changed, 1 insertions, 19 deletions
diff --git a/test/test_certutils.py b/test/test_certutils.py
index e079ec40..50df36ae 100644
--- a/test/test_certutils.py
+++ b/test/test_certutils.py
@@ -1,5 +1,5 @@
import os
-from netlib import certutils, certffi
+from netlib import certutils
import tutils
# class TestDNTree:
@@ -92,24 +92,6 @@ class TestCertStore:
ret = ca1.get_cert("foo.com", [])
assert ret[0].serial == dc[0].serial
- def test_gen_pkey(self):
- try:
- with tutils.tmpdir() as d:
- ca1 = certutils.CertStore.from_store(
- os.path.join(
- d,
- "ca1"),
- "test")
- ca2 = certutils.CertStore.from_store(
- os.path.join(
- d,
- "ca2"),
- "test")
- cert = ca1.get_cert("foo.com", [])
- assert certffi.get_flags(ca2.gen_pkey(cert[0])) == 1
- finally:
- certffi.set_flags(ca2.default_privatekey, 0)
-
class TestDummyCert: