Fix storage.load_person doctest typo (actually print the PGP key).
authorW. Trevor King <wking@drexel.edu>
Fri, 6 Apr 2012 18:12:37 +0000 (14:12 -0400)
committerW. Trevor King <wking@drexel.edu>
Fri, 6 Apr 2012 18:12:37 +0000 (14:12 -0400)
pygrader/storage.py

index 9e0a521636d27430c947071115fcb22c61271d89..db02f20d23b6af2b7c1f477523d9f5649d5cd9a1 100644 (file)
@@ -195,7 +195,7 @@ def load_person(name, data={}):
     ...           'emails': 'g@grey.edu, g@greyhavens.net',
     ...           'pgp-key': '0x0123456789ABCDEF',
     ...           })
-    >>> print('{0.name}: {0.emails}'.format(p))
+    >>> print('{0.name}: {0.emails} | {0.pgp_key}'.format(p))
     Gandalf: ['g@grey.edu', 'g@greyhavens.net'] | 0x0123456789ABCDEF
     >>> p = load_person(name='Gandalf')
     >>> print('{0.name}: {0.emails} | {0.pgp_key}'.format(p))