Skip to content

Commit

Permalink
add a test with image with a unknown extension
Browse files Browse the repository at this point in the history
  • Loading branch information
jens authored and jens committed Feb 27, 2011
1 parent 5c914dd commit 07955aa
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/test_creole2html.py
Expand Up @@ -354,6 +354,19 @@ def test_image(self):
<img src="/path1/path2/foobar3.jpg" alt="foobar3.jpg" /></p>
""")

def test_image_unknown_extension(self):
self.assertCreole(r"""
# {{/path/to/image.ext|image ext}} one
# {{/no/extension|no extension}} two
# {{/image.xyz}} tree
""", """
<ol>
<li><img src="/path/to/image.ext" alt="image ext" /> one</li>
<li><img src="/no/extension" alt="no extension" /> two</li>
<li><img src="/image.xyz" alt="/image.xyz" /> tree</li>
</ol>
""")

def test_links(self):
self.assertCreole(r"""
[[/foobar/Creole_(Markup)]]
Expand Down

0 comments on commit 07955aa

Please sign in to comment.