Add doctest and docstring for GPG.list_sigs().

testing/mmn/mktime_takes_localtime_not_gmtime
Isis Lovecruft 2013-05-21 13:49:06 +00:00
parent f64b0eef03
commit 6cbed40f84
No known key found for this signature in database
GPG Key ID: A3ADB67A2CDB8B35
1 changed files with 9 additions and 4 deletions

View File

@ -1059,10 +1059,15 @@ use_agent: %s
def list_sigs(self, *keyids): def list_sigs(self, *keyids):
"""Get the signatures for each of the ``keyids``. """Get the signatures for each of the ``keyids``.
The GnuPG option '--show-photos', according to the GnuPG manual, "does >>> import gnupg
not work with --with-colons", but since we can't rely on all versions >>> gpg = gnupg.GPG(homedir="./tests/doctest")
of GnuPG to explicitly handle this correctly, we should probably >>> key_input = gpg.gen_key_input()
include it in the args. >>> key = gpg.gen_key(key_input)
>>> assert key.fingerprint
:rtype: dict
:returns: A dictionary whose keys are the original keyid parameters,
and whose values are lists of signatures.
""" """
raise NotImplemented("Functionality for '--list-sigs' not implemented.") raise NotImplemented("Functionality for '--list-sigs' not implemented.")