summaryrefslogtreecommitdiff
path: root/tests/test_ssl_offline.py
Commit message (Collapse)AuthorAgeFilesLines
* Replace 'from . import' with absolute imports.Matěj Cepl2021-01-141-1/+1
|
* Mass removal of deprecated constructs.Matěj Cepl2020-12-021-3/+3
| | | | | * Replace unittest.makeSuite with unittest.TestLoader().loadTestsFromTestCase * import unittest from relative import
* Extend test cert validity to 2049Bernhard M. Wiedemann2019-11-261-1/+1
| | | | | | | | | | | | | | | | to make tests pass after 2028 Background: As part of my work on reproducible builds for openSUSE, I check that software still gives identical build results in the future. The usual offset is +15 years, because that is how long I expect some software will be used in some places. This showed failing tests in our package build. See https://reproducible-builds.org/ for why this matters. Note: I tested that i586 builds still pass tests on 2036-12-01 so this change introduces no year2038 problem.
* Create 2048 bit test keysKurt Roeckx2018-10-071-1/+1
|
* PEP8isationMatěj Cepl2018-03-201-10/+6
| | | | | | | Specially replace complicated construct with unittest2 to one import to M2Crypto top module. Also, Rand.load_file should have first parameter as bytes(), not str().
* Add M2Crypto.SSL.Context().set_default_verify_paths() method.Matěj Cepl2017-05-171-0/+6
| | | | Fix #158
* SSL and SMIME modules: Add PEP-484 type hints in comments.Matěj Cepl2016-06-301-4/+4
|
* Fix broken imports (and PEP8ization).Matěj Cepl2016-03-201-1/+1
|
* Use the new absolute import syntax to fix Python 3. [PEP 328]Craig Rodrigues2016-03-201-1/+3
| | | | | | | | | | | I used the output of "2to3 -f import M2Crypto" to figure out which imports needed to be fixed. In addition, I added "from __future__ import absolute_import" to all files that I touched. This brings in the new import behavior, and works as far back as Python 2.5.0a1. See: https://docs.python.org/3/library/__future__.html https://www.python.org/dev/peps/pep-0328/
* Another fixes to tests/makecerts.py and related modification of PEMs.Matěj Cepl2015-11-271-1/+1
|
* Regenerate testing PEM filesMatěj Cepl2015-11-251-8/+7
| | | | | | And fix expected values to new certs. Fix #77
* Strip trailinig spaces and expand tabs.Matěj Cepl2015-11-191-4/+4
| | | | | | | Just run $ find . -name \*.py -exec sed -r -i -e "s/\t/ /g" '{}' \; $ find . -name \*.py -exec sed -r -i -e "s/[ ]+$//" '{}' \;
* Remove more plain assertsMatěj Cepl2015-11-181-3/+3
|
* Change self.assertRaises to context managers.Matěj Cepl2015-10-271-2/+4
|
* Replace expired certificates in the test suiteMiloslav Trmač2015-10-131-1/+1
| | | | | | Testing certificates in the testsuite were replaced the ones with the expiration date Jan 8 15:33:54 2023 GMT which should be enough for some time.
* Switch unit testing to have at least 2.7 unittest API available.Matěj Cepl2015-10-131-1/+6
| | | | Fixes #48
* Support OpenSSL 1.0. Thanks to Miloslav Trmac for figuring out how to fix ↵Heikki Toivonen2010-02-131-0/+60
test_smime.py. git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@721 2715db39-9adf-0310-9c64-84f055769b4b