我们从Python开源项目中,提取了以下12个代码示例,用于说明如何使用OpenSSL.crypto.NetscapeSPKIType()。
def test_type(self): """ L{NetscapeSPKI} and L{NetscapeSPKIType} refer to the same type object and can be used to create instances of that type. """ self.assertIdentical(NetscapeSPKI, NetscapeSPKIType) self.assertConsistentType(NetscapeSPKI, 'NetscapeSPKI')
def test_construction(self): """ L{NetscapeSPKI} returns an instance of L{NetscapeSPKIType}. """ nspki = NetscapeSPKI() self.assertTrue(isinstance(nspki, NetscapeSPKIType))
def test_type(self): """ `NetscapeSPKI` and `NetscapeSPKIType` refer to the same type object and can be used to create instances of that type. """ assert NetscapeSPKI is NetscapeSPKIType assert is_consistent_type(NetscapeSPKI, 'NetscapeSPKI')
def test_construction(self): """ `NetscapeSPKI` returns an instance of `NetscapeSPKIType`. """ nspki = NetscapeSPKI() assert isinstance(nspki, NetscapeSPKIType)
def test_type(self): """ :py:obj:`NetscapeSPKI` and :py:obj:`NetscapeSPKIType` refer to the same type object and can be used to create instances of that type. """ self.assertIdentical(NetscapeSPKI, NetscapeSPKIType) self.assertConsistentType(NetscapeSPKI, 'NetscapeSPKI')
def test_construction(self): """ :py:obj:`NetscapeSPKI` returns an instance of :py:obj:`NetscapeSPKIType`. """ nspki = NetscapeSPKI() self.assertTrue(isinstance(nspki, NetscapeSPKIType))