def test_invalid_subject(self):
"""
If the C{subject} parameter is given a value which is not an L{X509}
instance, L{TypeError} is raised.
"""
for badObj in [True, object(), "hello", [], self]:
self.assertRaises(
TypeError,
X509Extension,
'basicConstraints', False, 'CA:TRUE', subject=badObj)
评论列表
文章目录