~rick-fdd/pyopenssl/assert_identical

« back to all changes in this revision

Viewing changes to test/test_ssl.py

  • Committer: Jean-Paul Calderone
  • Date: 2009-04-01 18:49:13 UTC
  • mfrom: (98.1.5 dump_text)
  • Revision ID: exarkun@magnon-20090401184913-s95sb944xxhq1q3d
Add FILETYPE_TEXT for dumping keys and certificates to a text format

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
    from twisted.trial.unittest import TestCase
16
16
except ImportError:
17
17
    # Fall back to the stdlib TestCase though, since it kind of works.
18
 
    from unittest import TestCase
 
18
    from unittest import TestCase, main
19
19
 
20
20
from OpenSSL.crypto import TYPE_RSA, FILETYPE_PEM, PKey, dump_privatekey, load_certificate, load_privatekey
21
21
from OpenSSL.SSL import WantReadError, Context, Connection, Error
311
311
            self.assertEqual(OP_NO_TICKET, 0x4000)
312
312
    else:
313
313
        "OP_NO_TICKET unavailable - OpenSSL version may be too old"
 
314
 
 
315
 
 
316
if __name__ == '__main__':
 
317
    main()
 
318