summaryrefslogtreecommitdiff
path: root/tests/test_strings.py
Commit message (Collapse)AuthorAgeFilesLines
* Reformatting with BlackSybren A. Stüvel2021-03-291-1/+1
| | | | No functional changes.
* Clean up stdout when using unittest test runnerSaif Hakim2021-02-241-1/+1
| | | | | | | | While pytest is the preferred test runner via tox, it looks like some folks are still running tests via `python3 setup.py test` which uses unittest and does not have good support for capturing stdout. To make using unittest slightly more friendly, we further swallow stdout / stderr for cli tests, and ensure print statements start on a newline.
* Drop character encoding markers for Python 2.xAndrey Semakin2020-06-031-2/+0
|
* Fix BytesWarning in testsJon Dufresne2018-10-231-3/+3
| | | | | | | | | | | | | | | Shouldn't try to coerce bytes to a string. Instead, print the repr value (e.g. b'mybytestring'). When running tests with the Python `-b` option, fixes warnings of the form: .../python-rsa/tests/test_strings.py:34: BytesWarning: str() on a bytes instance print("\tMessage: %s" % message) .../python-rsa/tests/test_strings.py:37: BytesWarning: str() on a bytes instance print("\tEncrypted: %s" % encrypted) .../python-rsa/tests/test_strings.py:40: BytesWarning: str() on a bytes instance print("\tDecrypted: %s" % decrypted)
* Updated documentation, mostly http -> https changesSybren A. Stüvel2016-02-051-1/+1
| | | | | | Also: - changed http to https in the code - changed header underlines in the documentation to match the header length
* Simplified test structure a bit, so we no longer need to set PYTHONPATHSybren A. Stüvel2016-01-271-1/+1
| | | | | The u'' string prefix was reintroduced in Python 3.3, and since we've dropped py3.2 support we can avoid the whole py{2k,3k}constants.py mess.
* Big refactor to become more PEP8 compliant.Sybren A. Stüvel2016-01-221-4/+2
| | | | | Mostly focused on docstrings (''' → """), indentation, empty lines, and superfluous parenthesis.
* Removed dependency on unittest2, also merged requirements.txt for py 2.x and 3.xSybren A. Stüvel2016-01-211-2/+2
|
* Added character encoding markers for Python 2.xSybren A. Stüvel2015-11-051-0/+1
|
* Added per-file licensesRoy Kokkelkoren2015-10-251-0/+15
|
* Fixed unittesting with toxSybren A. Stüvel2011-11-061-1/+1
|
* Reverts docstring quoting syntax.Yesudeep Mangalapilly2011-08-241-1/+1
|
* Parellelized testing. Caught a lot of bugs.Yesudeep Mangalapilly2011-08-161-1/+1
|
* Update tests to use unittest2.Yesudeep Mangalapilly2011-08-111-2/+2
|
* Tests are now functional (only running without syntax errors) on Python 3 too.Yesudeep Mangalapilly2011-08-111-4/+8
|
* Removed insecure code from rsa/__init__.pySybren A. Stüvel2011-07-301-14/+1
|
* Added block padding to be able to work with leading zeroes, breaks all kind ↵Sybren A. Stüvel2011-06-201-4/+3
| | | | of stuff
* Added unittestsSybren A. Stüvel2011-06-201-0/+38