Adding the following code to test_crypto.py in the class X509ExtTests will perform a minimal self unittest of the modulus function.
def test_modulus(self):
"""
The modulus of the certificate and the private key should
match
""" self.assertEqual(self.pkey.modulus(), self.x509.modulus())
Adding the following code to test_crypto.py in the class X509ExtTests will perform a minimal self unittest of the modulus function.
def test_modulus(self):
self.assertEqu al(self. pkey.modulus( ), self.x509. modulus( ))
"""
The modulus of the certificate and the private key should
match
"""