[Pkg-gnupg-commit] [gpgme] 67/103: python: Improve keylist test.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Thu Dec 14 18:53:05 UTC 2017
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gpgme.
commit 70c8be9efe8de40bec0f0673589f3c9be7136674
Author: Justus Winter <justus at g10code.com>
Date: Mon Aug 21 10:54:10 2017 +0200
python: Improve keylist test.
* lang/python/tests/t-keylist.py: Check a keylist matching no keys.
Signed-off-by: Justus Winter <justus at g10code.com>
---
lang/python/tests/t-keylist.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lang/python/tests/t-keylist.py b/lang/python/tests/t-keylist.py
index 76c793e..4505d3c 100755
--- a/lang/python/tests/t-keylist.py
+++ b/lang/python/tests/t-keylist.py
@@ -229,6 +229,9 @@ alpha_keys = list(c.op_keylist_all(b"Alpha"))
assert len(alpha_keys) == 1, "Expected only one key for 'Alpha', got %r" % len(alpha_keys)
+# Check negative result.
+assert len(list(c.keylist("no such key in sight"))) == 0
+
for i, key in enumerate(c.keylist()):
try:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git
More information about the Pkg-gnupg-commit
mailing list