Comment 3 for bug 735449

Revision history for this message
Wouter van Bommel (woutervb) wrote :

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())