summaryrefslogtreecommitdiff
path: root/tests/test_obj.py
Commit message (Collapse)AuthorAgeFilesLines
* Replace 'from . import' with absolute imports.Matěj Cepl2021-01-141-1/+1
|
* Remove deprecation warningsMatěj Cepl2021-01-141-1/+1
|
* Mass removal of deprecated constructs.Matěj Cepl2020-12-021-2/+2
| | | | | * Replace unittest.makeSuite with unittest.TestLoader().loadTestsFromTestCase * import unittest from relative import
* Show detailed OpenSSL error messagesKonstantin Shemyak2018-07-231-0/+22
| | | | | | | | | | | | | | When OpenSSL encounters an error, M2Crypto prints only the "reason string" (given by ERR_reason_error_string()). This string often contains only very generic message. For example, for all certificate verification errors, the string is the same "certificate verify error". OpenSSL applications (e.g. the command-line utilities from OpenSSL distribution) additionally show "optional text message" as given by ERR_get_error_line_data(). This message contains more detailed error reason, such as for example "certificate revoked". Added this message (if given by OpenSSL) to the Python error text.
* PEP8isationMatěj Cepl2018-03-201-9/+4
| | | | | | | 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().
* Replace util.py3{bytes,str} with six.ensure_{binary,text}Matěj Cepl2018-03-191-5/+8
|
* tests.test_obj: x509_name_entry2tuple returns tuple of strs.Matěj Cepl2018-02-051-3/+5
|
* tests: type hints and PEP8izationMatěj Cepl2016-07-121-23/+33
|
* Fix whitespace using suggestions from autopep8Craig Rodrigues2015-12-011-4/+4
|
* Strip trailinig spaces and expand tabs.Matěj Cepl2015-11-191-3/+3
| | | | | | | 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-12/+23
|
* Change self.assertRaises to context managers.Matěj Cepl2015-10-271-1/+2
|
* Switch unit testing to have at least 2.7 unittest API available.Matěj Cepl2015-10-131-1/+5
| | | | Fixes #48
* Bug 10813, wrap OBJ_* functions, by Pavel Shramov.Heikki Toivonen2008-09-151-0/+92
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@615 2715db39-9adf-0310-9c64-84f055769b4b