diff options
author | Justus Winter <[email protected]> | 2017-08-21 08:54:10 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2017-08-21 08:54:10 +0000 |
commit | 70c8be9efe8de40bec0f0673589f3c9be7136674 (patch) | |
tree | a080d9bca2baf2adad409d3897bdc1a4538d765d | |
parent | doc: Add version information. (diff) | |
download | gpgme-70c8be9efe8de40bec0f0673589f3c9be7136674.tar.gz gpgme-70c8be9efe8de40bec0f0673589f3c9be7136674.zip |
python: Improve keylist test.
* lang/python/tests/t-keylist.py: Check a keylist matching no keys.
Signed-off-by: Justus Winter <[email protected]>
-rwxr-xr-x | lang/python/tests/t-keylist.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lang/python/tests/t-keylist.py b/lang/python/tests/t-keylist.py index 76c793e7..4505d3c9 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: |