diff options
author | Konstantin Shemyak <konstantin@shemyak.com> | 2018-07-23 23:19:18 +0300 |
---|---|---|
committer | Konstantin Shemyak <konstantin@shemyak.com> | 2018-07-23 23:19:18 +0300 |
commit | 1141cb32e9a130b580e1d8e00935516889aa401d (patch) | |
tree | 64e8413f197243b04b0d2d8771a788699b93f733 /tests | |
parent | 6ecc61456ffbfe89dfd48b689c9224ec66b4b816 (diff) | |
download | m2crypto-1141cb32e9a130b580e1d8e00935516889aa401d.tar.gz |
Deleted duplicate test from a wrong location
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_smime.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/test_smime.py b/tests/test_smime.py index 2d9b105..a0edca8 100644 --- a/tests/test_smime.py +++ b/tests/test_smime.py @@ -209,29 +209,6 @@ class SMIMETestCase(unittest.TestCase): with self.assertRaises(SMIME.PKCS7_Error): s.verify(p7) # Bad signer - # This test is not SMIME-specific - it tests that the additional OpenSSL - # error message is visible in Python error messages. - def test_detailed_error_message(self): - s = SMIME.SMIME() - x509 = X509.load_cert('tests/recipient.pem') - sk = X509.X509_Stack() - sk.push(x509) - s.set_x509_stack(sk) - - st = X509.X509_Store() - st.load_info('tests/recipient.pem') - s.set_x509_store(st) - - p7, data = SMIME.smime_load_pkcs7_bio(self.signed) - self.assertIsInstance(p7, SMIME.PKCS7, p7) - - try: - s.verify(p7, data) - except SMIME.PKCS7_Error as e: - self.assertRegexpMatches(str(e), - "unable to get local issuer certificate", - "Not received expected error message") - def test_encrypt(self): buf = BIO.MemoryBuffer(self.cleartext) s = SMIME.SMIME() |