]> www.wagner.pp.ru Git - oss/ctypescrypto.git/blobdiff - tests/testx509.py
Add X509 to __all__. Add pem() method to X509
[oss/ctypescrypto.git] / tests / testx509.py
index 060d8117111e96f80fc1e57940b86ab0ddadf66c..50b3b6a7f5e05928918263bd8f52d6156e77a188 100644 (file)
@@ -115,6 +115,9 @@ zVMSW4SOwg/H7ZMZ2cn6j1g0djIvruFQFGHUqFijyDATI+/GJYw2jxyA
                c=X509(self.cert1)
                p=c.pubkey
                self.assertEqual(p.exportpub(),self.pubkey1)
+       def test_pem(self):
+               c=X509(self.cert1)
+               self.assertEqual(c.pem(),self.cert1)
        def test_subject(self):
                c=X509(self.cert1)
                self.assertEqual(unicode(c.subject),u'C=RU,ST=Москва,L=Москва,O=Частное лицо,CN=Виктор Вагнер')