diff options
Diffstat (limited to 'unit_tests.py')
-rw-r--r-- | unit_tests.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/unit_tests.py b/unit_tests.py index 62de2cf..f5553d4 100644 --- a/unit_tests.py +++ b/unit_tests.py @@ -236,20 +236,6 @@ class TestKeys(unittest.TestCase): p11.C_GenerateKeyPair(self.session, CKM_EC_KEY_PAIR_GEN, CKA_TOKEN = True, CKA_ID = "EC-P256", CKA_EC_PARAMS = self.oid_p256, CKA_SIGN = True, CKA_VERIFY = True)) - with self.assertRaises(CKR_Exception): - self.assertIsKeypair( - p11.C_GenerateKeyPair(self.session, CKM_EC_KEY_PAIR_GEN, - public_CKA_TOKEN = False, private_CKA_TOKEN = True, - CKA_ID = "EC-P256", CKA_EC_PARAMS = self.oid_p256, - CKA_SIGN = True, CKA_VERIFY = True)) - with self.assertRaises(CKR_Exception): - self.assertIsKeypair( - p11.C_GenerateKeyPair(self.session, CKM_EC_KEY_PAIR_GEN, - public_CKA_TOKEN = True, private_CKA_TOKEN = False, - CKA_ID = "EC-P256", CKA_EC_PARAMS = self.oid_p256, - CKA_SIGN = True, CKA_VERIFY = True)) - for handle in p11.FindObjects(self.session): - p11.C_DestroyObject(self.session, handle) self.assertIsKeypair( p11.C_GenerateKeyPair(self.session, CKM_EC_KEY_PAIR_GEN, public_CKA_TOKEN = False, private_CKA_TOKEN = True, |