From 464d404c8816fc93baf945816c93e86bdeb0ea39 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Wed, 18 May 2016 15:33:36 +0200 Subject: 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 --- lang/python/tests/t-encrypt.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lang/python/tests/t-encrypt.py') diff --git a/lang/python/tests/t-encrypt.py b/lang/python/tests/t-encrypt.py index 3bed752b..24869fcd 100755 --- a/lang/python/tests/t-encrypt.py +++ b/lang/python/tests/t-encrypt.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 . -import sys -import os from pyme import core, constants import support @@ -38,5 +36,4 @@ result = c.op_encrypt_result() assert not result.invalid_recipients, \ "Invalid recipient encountered: {}".format(result.invalid_recipients.fpr) -sink.seek(0, os.SEEK_SET) -sys.stdout.buffer.write(sink.read()) +support.print_data(sink) -- cgit v1.2.3