pgp: expect subkey signing in `verify` doctests.
authorW. Trevor King <wking@tremily.us>
Wed, 26 Sep 2012 19:52:49 +0000 (15:52 -0400)
committerW. Trevor King <wking@tremily.us>
Sat, 6 Oct 2012 12:48:12 +0000 (08:48 -0400)
Now that pgp-mime-test has a subkey

  commit 236cc6d2ede3fb9f6b55695115d4246a69489e02
  Author: W. Trevor King <wking@tremily.us>
  Date:   Thu Sep 20 11:20:36 2012 -0400

    test:key: add a subkey to the testing key.

Signing and encryption use the new subkey by default.  You can still
sign/encrypt using the primary key if you use part of the key
fingerprint explicitly in the `signers` argument.

pgp_mime/pgp.py

index fa45bda1370ecb722d8783dd3eee90996a96031a..c9060114ea5a74e33578a33523a00c662d27ad7d 100644 (file)
@@ -449,7 +449,7 @@ def verify(message):
     >>> for s in signatures:
     ...     print(s.dumps())  # doctest: +REPORT_UDIFF
     ... # doctest: +REPORT_UDIFF, +ELLIPSIS
-    B2EDBE0E771A4B8708DD16A7511AEDA64332B6E3 signature:
+    DECC812C8795ADD60538B0CD171008BA2F73DE2E signature:
       summary:
         CRL missing: False
         CRL too old: False
@@ -504,7 +504,7 @@ def verify(message):
     >>> for s in signatures:
     ...     print(s.dumps())  # doctest: +REPORT_UDIFF
     ... # doctest: +REPORT_UDIFF, +ELLIPSIS
-    B2EDBE0E771A4B8708DD16A7511AEDA64332B6E3 signature:
+    DECC812C8795ADD60538B0CD171008BA2F73DE2E signature:
       summary:
         CRL missing: False
         CRL too old: False