diff options
author | Justus Winter <[email protected]> | 2016-05-18 13:33:36 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-05-19 09:09:45 +0000 |
commit | 464d404c8816fc93baf945816c93e86bdeb0ea39 (patch) | |
tree | ebf28609039cc527c758453eae125cfc39104788 /lang/python/tests/t-decrypt.py | |
parent | python: More type conversion fixes. (diff) | |
download | gpgme-464d404c8816fc93baf945816c93e86bdeb0ea39.tar.gz gpgme-464d404c8816fc93baf945816c93e86bdeb0ea39.zip |
python: Add more tests.
* lang/python/tests/Makefile.am (py_tests): Add new tests.
* lang/python/tests/support.py (print_data): New function.
* lang/python/tests/t-decrypt.py: Use new function.
* lang/python/tests/t-encrypt.py: Likewise.
* lang/python/tests/t-sign.py: New file.
* lang/python/tests/t-encrypt-sym.py: Likewise.
Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'lang/python/tests/t-decrypt.py')
-rwxr-xr-x | lang/python/tests/t-decrypt.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lang/python/tests/t-decrypt.py b/lang/python/tests/t-decrypt.py index da62ba42..bd7b59fb 100755 --- a/lang/python/tests/t-decrypt.py +++ b/lang/python/tests/t-decrypt.py @@ -17,8 +17,6 @@ # You should have received a copy of the GNU Lesser General Public # License along with this program; if not, see <http://www.gnu.org/licenses/>. -import sys -import os from pyme import core, constants import support @@ -33,5 +31,4 @@ result = c.op_decrypt_result() assert not result.unsupported_algorithm, \ "Unsupported algorithm: {}".format(result.unsupported_algorithm) -sink.seek(0, os.SEEK_SET) -sys.stdout.buffer.write(sink.read()) +support.print_data(sink) |