diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2017-08-07 13:40:29 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2017-08-14 09:29:28 -0700 |
commit | c377ee5bd6e2b64be8bbdd5df72ac3ca50373134 (patch) | |
tree | ff377ff7436e50e631764d0141d98161e7248218 /alot/db/utils.py | |
parent | ec504a44af0420669c0ce28f35679835e3f9e32c (diff) |
tests/crypto: Fix GetKey.test_missing_key
'z', the value currently passed to get_key isn't a valid value, so it
raises GPGMEError with a code of INV_VALUE. However, if an actual email
is passed a KeyNotFound exception is raised instead.
The existing test is valid and should remain, since it catches a
potential bug, but it doesn't test for a missing key, it tests for an
invalid key. This patch renames the existing test and adds a new test to
cover an actual missing key.
Diffstat (limited to 'alot/db/utils.py')
0 files changed, 0 insertions, 0 deletions