diff options
author | Waylan Limberg <waylan@gmail.com> | 2011-08-02 09:23:49 -0400 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2011-08-02 09:23:49 -0400 |
commit | 7af553173629d8d8e36e71fbf2753dc8d6fe11d3 (patch) | |
tree | b9f2460776fe98511f3c713b5ae5fd5b3899bfaf /markdown/extensions/meta.py | |
parent | 447e238186f30f3480afadb68aaf5efa4f6dfc9e (diff) | |
download | markdown-7af553173629d8d8e36e71fbf2753dc8d6fe11d3.tar.gz markdown-7af553173629d8d8e36e71fbf2753dc8d6fe11d3.tar.bz2 markdown-7af553173629d8d8e36e71fbf2753dc8d6fe11d3.zip |
Added doctests to fabfile and edited them to pass in all supported versions of python. Note: one test (meta) is still failing on Python 3 due to unicode strings.
Diffstat (limited to 'markdown/extensions/meta.py')
-rw-r--r-- | markdown/extensions/meta.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/markdown/extensions/meta.py b/markdown/extensions/meta.py index 8983fc8..a3407da 100644 --- a/markdown/extensions/meta.py +++ b/markdown/extensions/meta.py @@ -17,17 +17,18 @@ Basic Usage: ... The body. This is paragraph one. ... ''' >>> md = markdown.Markdown(['meta']) - >>> md.convert(text) - u'<p>The body. This is paragraph one.</p>' - >>> md.Meta + >>> print md.convert(text) + <p>The body. This is paragraph one.</p> + >>> print md.Meta {u'blank_data': [u''], u'author': [u'Waylan Limberg', u'John Doe'], u'title': [u'A Test Doc.']} Make sure text without Meta Data still works (markdown < 1.6b returns a <p>). >>> text = ' Some Code - not extra lines of meta data.' >>> md = markdown.Markdown(['meta']) - >>> md.convert(text) - u'<pre><code>Some Code - not extra lines of meta data.\\n</code></pre>' + >>> print md.convert(text) + <pre><code>Some Code - not extra lines of meta data. + </code></pre> >>> md.Meta {} |