def test_get_critical(self):
"""
L{X509ExtensionType.get_critical} returns the value of the
extension's critical flag.
"""
ext = X509Extension('basicConstraints', True, 'CA:true')
self.assertTrue(ext.get_critical())
ext = X509Extension('basicConstraints', False, 'CA:true')
self.assertFalse(ext.get_critical())
评论列表
文章目录