Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/test_write.doctest
Commit message (Collapse)AuthorAgeFilesLines
* Add encryption error testsArthur de Jong2016-03-261-0/+74
|
* Add tests for writing encrypted PSKC filesArthur de Jong2016-03-261-0/+175
|
* Write encryption key informationArthur de Jong2016-03-261-0/+4
| | | | | | This writes information about a pre-shared key or PBKDF2 key derivation in the PSKC file. This also means that writing a decrypted version of a previously encrypted file requires actively removing the encryption.
* Also check key expiry in may_use()Arthur de Jong2016-03-231-5/+4
|
* Support writing to text streams in Python 3Arthur de Jong2016-03-191-3/+1
| | | | | This supports writing the XML output to binary streams as well as text streams in Python 3.
* Improve tests and test coverageArthur de Jong2016-03-191-3/+3
| | | | | | | | | | This adds tests to ensure that incorrect attribute and value types in the PSKC file raise a ValueError exception and extends the tests for invalid encryption options. This removes some code or adds no cover directives to a few places that have unreachable code or are Python version specific and places doctest directives inside the doctests where needed.
* Re-organise test filesArthur de Jong2016-01-301-1/+1
| | | | | This puts the test PSKC files in subdirectories so they can be organised more cleanly.
* Fix a problem when writing previously encrypted fileArthur de Jong2016-01-241-0/+21
| | | | | This fixes a problem with writing a PSKC file that is based on a read file that was encrypted.
* Support Python 3Arthur de Jong2015-10-061-5/+7
| | | | | | | | This enables support for Python 3 together with Python 2 support with a single codebase. On Python 3 key data is passed around as bytestrings which makes the doctests a little harder to maintain across Python versions.
* Add test for writing PSKC filesArthur de Jong2014-06-281-0/+143
This makes a simple doctest that checks the writing of the XML representation of the PSKC data.