~stepankk/pyopenssl/bug-845445

« back to all changes in this revision

Viewing changes to OpenSSL/test/test_crypto.py

  • Committer: Jean-Paul Calderone
  • Date: 2011-09-13 19:24:38 UTC
  • Revision ID: exarkun@divmod.com-20110913192438-1212q0lyyr1fdpwf
Correctly handle errors from X509_CRL_sign

Show diffs side-by-side

added added

removed removed

Lines of Context:
2515
2515
        self.assertEqual(text, dumped_text)
2516
2516
 
2517
2517
 
 
2518
    def test_export_invalid(self):
 
2519
        """
 
2520
        If :py:obj:`CRL.export` is used with an uninitialized :py:obj:`X509`
 
2521
        instance, :py:obj:`ValueError` is raised.
 
2522
        """
 
2523
        crl = CRL()
 
2524
        self.assertRaises(Error, crl.export, X509(), PKey())
 
2525
 
 
2526
 
2518
2527
    def test_add_revoked_keyword(self):
2519
2528
        """
2520
2529
        :py:obj:`OpenSSL.CRL.add_revoked` accepts its single argument as the