Beispiel #1
0
 def test_invalid_build_attributes(self):
     self.assertRaises(TypeError, self.pkcs11._build_attributes,
                       [pkcs11.Attribute(pkcs11.CKA_CLASS, {})])
Beispiel #2
0
 def test_invalid_attribute(self):
     attrs = [pkcs11.Attribute(0, object())]
     self.assertRaises(TypeError, self.plugin.pkcs11.build_attributes,
                       attrs)