key: add a UserID.uid doctest to ensure proper XML unescaping.
authorW. Trevor King <wking@tremily.us>
Sat, 6 Oct 2012 15:22:37 +0000 (11:22 -0400)
committerW. Trevor King <wking@tremily.us>
Sat, 6 Oct 2012 15:22:37 +0000 (11:22 -0400)
pgp_mime/key.py

index 7aa1c8a2310044700708a5501e35faa09ec5cf8a..3a5ab48545345cd391c5f1cde4c0fdac794ac09b 100644 (file)
@@ -125,6 +125,8 @@ def lookup_keys(patterns=None):
     [<SubKey 4332B6E3>, <SubKey 2F73DE2E>]
     >>> key.uids
     [<UserID pgp-mime-test>]
+    >>> key.uids[0].uid
+    'pgp-mime-test (http://blog.tremily.us/posts/pgp-mime/) <pgp-mime@invalid.com>'
     >>> key.can_encrypt
     True
     >>> key.protocol