gpgme/lang/python/tests
Justus Winter 2ae847c027 python: Implement data callbacks.
* lang/python/gpgme.i (object_to_gpgme_t): Set exception on error.
* lang/python/helpers.c (pyDataReadCb): New function.
(pyDataWriteCb): Likewise.
(pyDataSeekCb): Likewise.
(pyDataReleaseCb): Likewise.
(pygpgme_data_new_from_cbs): Likewise.
* lang/python/helpers.h (pygpgme_data_new_from_cbs): New prototype.
* lang/python/pyme/core.py (Data.__init__): Fix docstring, fix read
callbacks.
(Data.__del__): Fix read callbacks.
(Data._free_readcb): Drop function.
(Data._free_datacbs): New function.
(Data.new_from_cbs): Fix setting the callbacks.
(Data.write): Raise stashed exceptions.
(Data.read): Likewise.
* lang/python/tests/t-callbacks.py: Test new functionality.
* lang/python/tests/t-data.py: Likewise.

Signed-off-by: Justus Winter <justus@gnupg.org>
2016-05-27 14:04:28 +02:00
..
Makefile.am python: Improve and test Context.wait. 2016-05-24 18:00:16 +02:00
support.py python: Add more tests. 2016-05-19 11:09:45 +02:00
t-callbacks.py python: Implement data callbacks. 2016-05-27 14:04:28 +02:00
t-data.py python: Implement data callbacks. 2016-05-27 14:04:28 +02:00
t-decrypt.py python: Add more tests. 2016-05-19 11:09:45 +02:00
t-edit.py python: Improve support for edit callbacks. 2016-05-24 13:13:35 +02:00
t-encrypt-sign.py python: Port more tests. 2016-05-23 15:43:55 +02:00
t-encrypt-sym.py python: Add more tests. 2016-05-19 11:09:45 +02:00
t-encrypt.py python: Add more tests. 2016-05-19 11:09:45 +02:00
t-export.py python: Port more tests. 2016-05-23 15:43:55 +02:00
t-sign.py python: Add more tests. 2016-05-19 11:09:45 +02:00
t-signers.py python: Port more tests. 2016-05-23 15:43:55 +02:00
t-wait.py python: Improve and test Context.wait. 2016-05-24 18:00:16 +02:00
t-wrapper.py python: Share generated methods between objects. 2016-05-12 18:29:04 +02:00