From 3915842657f0849a038752fd7445f96081a89dd9 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Fri, 27 May 2016 15:58:23 +0200 Subject: python: Port more tests. * lang/python/pyme/core.py (Data._error_check): Add 'gpgme_data_get_file_name' to the list of functions not returning an error code. * lang/python/tests/Makefile.am (pytests): Add new tests. * lang/python/tests/support.py (verbose): New variable. * lang/python/tests/t-data.py: Test setting and getting the filename. * lang/python/tests/t-encrypt-large.py: New file. * lang/python/tests/t-file-name.py: Likewise. * lang/python/tests/t-trustlist.py: Likewise. Signed-off-by: Justus Winter --- lang/python/tests/t-data.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lang/python/tests/t-data.py') diff --git a/lang/python/tests/t-data.py b/lang/python/tests/t-data.py index de60c473..3774f09d 100755 --- a/lang/python/tests/t-data.py +++ b/lang/python/tests/t-data.py @@ -52,6 +52,10 @@ data.write(binjunk) data.seek(0, os.SEEK_SET) assert data.read() == binjunk +data = core.Data() +data.set_file_name("foobar") +assert data.get_file_name() == "foobar" + # Test reading from an existing file. with tempfile.NamedTemporaryFile() as tmp: tmp.write(binjunk) -- cgit v1.2.3