gpgme/lang/python/tests
Tobias Mueller 05896c210f python: Try to be more helpful when given a string to encrypt().
* lang/python/helpers.c (_gpg_obj2gpgme_data_t): Extended error
message.
* lang/python/tests/t-encrypt.py: Test for "encode" in error message.
--
The motivation is to help the user when encrypting fails. I claim that
it is not obvious to not being able to encrypt a string directly.  To
nudge the user into encoding it to bytes, the error message is a bit
extended.

Signed-off-by: Tobias Mueller <muelli@cryptobitch.de>
2016-12-05 12:44:20 +01:00
..
encrypt-only.asc python: Add an idiomatic interface. 2016-07-15 18:28:09 +02:00
final.py python: Import from __future__ to align behavior of Python 2.7. 2016-09-14 12:15:57 +02:00
initial.py python: Use vanity modules for constants in tests and examples. 2016-10-31 15:42:35 +01:00
Makefile.am python: Fix removing the TOFU database. 2016-11-25 09:55:42 +01:00
run-tests.py python: Build for both Python2 and Python3. 2016-09-14 12:18:15 +02:00
sign-only.asc python: Add an idiomatic interface. 2016-07-15 18:28:09 +02:00
support.py python: Check "buffer" when writing to sys.stdout for python2 compat. 2016-12-01 17:39:38 +01:00
t-callbacks.py python: Use vanity modules for constants in tests and examples. 2016-10-31 15:42:35 +01:00
t-data.py python: Import the topmost module in tests and examples. 2016-10-31 15:42:35 +01:00
t-decrypt-verify.py python: Use vanity modules for constants in tests and examples. 2016-10-31 15:42:35 +01:00
t-decrypt.py python: Use vanity modules for constants in tests and examples. 2016-10-31 15:42:35 +01:00
t-edit.py python: Use vanity modules for constants in tests and examples. 2016-10-31 15:42:35 +01:00
t-encrypt-large.py python: Use vanity modules for constants in tests and examples. 2016-10-31 15:42:35 +01:00
t-encrypt-sign.py python: Use vanity modules for constants in tests and examples. 2016-10-31 15:42:35 +01:00
t-encrypt-sym.py python: Use vanity modules for constants in tests and examples. 2016-10-31 15:42:35 +01:00
t-encrypt.py python: Try to be more helpful when given a string to encrypt(). 2016-12-05 12:44:20 +01:00
t-export.py python: Use vanity modules for constants in tests and examples. 2016-10-31 15:42:35 +01:00
t-file-name.py python: Use vanity modules for constants in tests and examples. 2016-10-31 15:42:35 +01:00
t-idiomatic.py python: Use vanity modules for constants in tests and examples. 2016-10-31 15:42:35 +01:00
t-import.py python: Use vanity modules for constants in tests and examples. 2016-10-31 15:42:35 +01:00
t-keylist.py python: Use vanity modules for constants in tests and examples. 2016-10-31 15:42:35 +01:00
t-protocol-assuan.py python: Use vanity modules for constants in tests and examples. 2016-10-31 15:42:35 +01:00
t-sig-notation.py python: Use vanity modules for constants in tests and examples. 2016-10-31 15:42:35 +01:00
t-sign.py python: Use vanity modules for constants in tests and examples. 2016-10-31 15:42:35 +01:00
t-signers.py python: Use vanity modules for constants in tests and examples. 2016-10-31 15:42:35 +01:00
t-trustlist.py python: Use vanity modules for constants in tests and examples. 2016-10-31 15:42:35 +01:00
t-verify.py python: Use vanity modules for constants in tests and examples. 2016-10-31 15:42:35 +01:00
t-wait.py python: Use vanity modules for constants in tests and examples. 2016-10-31 15:42:35 +01:00
t-wrapper.py python: Import the topmost module in tests and examples. 2016-10-31 15:42:35 +01:00