summaryrefslogtreecommitdiff
path: root/pym
diff options
context:
space:
mode:
authorW. Trevor King <wking@tremily.us>2012-11-11 20:28:08 -0500
committerW. Trevor King <wking@tremily.us>2012-11-11 20:28:08 -0500
commit5f7072beb9db8d7829a64aad21bdd10380488479 (patch)
treef0d2b59a99f7977e945771905ca8833958fe9f6c /pym
parent82d07c64bc279e88d01b943c9b40240e3ec851ff (diff)
downloadgentoolkit-5f7072beb9db8d7829a64aad21bdd10380488479.tar.gz
metadata: add new _Upstream attributes in module doctest
Diffstat (limited to 'pym')
-rw-r--r--pym/gentoolkit/metadata.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/pym/gentoolkit/metadata.py b/pym/gentoolkit/metadata.py
index 08b4b52..08472d3 100644
--- a/pym/gentoolkit/metadata.py
+++ b/pym/gentoolkit/metadata.py
@@ -23,10 +23,12 @@
rtf -> Enable export to RTF
gnome-print -> Enable pretty Python printing with gnome-print
>>> upstream = pkg_md.upstream()
- >>> upstream
- [<_Upstream {'docs': [], 'remoteid': [], 'maintainer':
- [<_Maintainer 'Thomas_Hinkle@alumni.brown.edu'>], 'bugtracker': [],
- 'changelog': []}>]
+ >>> upstream # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
+ [<_Upstream {'node': <Element 'upstream' at 0x...>,
+ 'remoteids': [], 'docs': [],
+ 'maintainers':
+ [<_Maintainer 'Thomas_Hinkle@alumni.brown.edu'>],
+ 'changelogs': [], 'bugtrackers': []}>]
>>> upstream[0].maintainer[0].name
'Thomas Mills Hinkle'
"""