olm/python/tests
Damir Jelić 2f5590bf38 olm: Allow decryption functions to define how to handle unicode decode errors.
This patch changes the decryption functions not to fail if there was an
unicode decode error while converting the decrypted bytes plaintext into
a native python string.

Characters that cannot be decoded as unicode are now replaced with the
unicode replacement character (U+FFFD).

The old behaviour of raising an UnicodeDecodeError can be achieved by
passing the "strict" error handling scheme to the decrypt function.
2019-06-18 13:50:46 +02:00
..
account_test.py python: Turn the signature buffer into a bytearray. 2019-01-23 17:10:44 -05:00
group_session_test.py olm: Allow decryption functions to define how to handle unicode decode errors. 2019-06-18 13:50:46 +02:00
pk_test.py olm: Allow decryption functions to define how to handle unicode decode errors. 2019-06-18 13:50:46 +02:00
sas_test.py python: Add support for the long KDF MAC calculation. 2019-04-09 10:57:36 +02:00
session_test.py olm: Allow decryption functions to define how to handle unicode decode errors. 2019-06-18 13:50:46 +02:00
utils_test.py python: Expose the sha256() function in the utilities. 2019-04-02 12:56:59 +02:00