summaryrefslogtreecommitdiff
path: root/tests/test_env.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-02-18 00:52:12 +0100
committerGeorg Brandl <georg@python.org>2009-02-18 00:52:12 +0100
commit27e20dc5f5ea2f53ead870283aa39ce6bb525b11 (patch)
treefa935820938ccc85feeb77da08515ec570aa7ea5 /tests/test_env.py
parent1d6c00ff74ea59c674918d47940c8ec3602f2fe8 (diff)
downloadsphinx-27e20dc5f5ea2f53ead870283aa39ce6bb525b11.tar.gz
SVG images are now supported in HTML (via ``<object>`` and ``<embed>`` tags).
Diffstat (limited to 'tests/test_env.py')
-rw-r--r--tests/test_env.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/test_env.py b/tests/test_env.py
index 32d87ebf..5d27bcfd 100644
--- a/tests/test_env.py
+++ b/tests/test_env.py
@@ -56,21 +56,21 @@ def test_images():
htmlbuilder.post_process_images(tree)
assert "no matching candidate for image URI u'foo.*'" in \
app._warning.content[-1]
- assert set(htmlbuilder.images.keys()) == set(['subdir/img.png', 'img.png',
- 'subdir/simg.png'])
- assert set(htmlbuilder.images.values()) == set(['img.png', 'img1.png',
- 'simg.png'])
+ assert set(htmlbuilder.images.keys()) == \
+ set(['subdir/img.png', 'img.png', 'subdir/simg.png', 'svgimg.svg'])
+ assert set(htmlbuilder.images.values()) == \
+ set(['img.png', 'img1.png', 'simg.png', 'svgimg.svg'])
app._warning.reset()
latexbuilder = LaTeXBuilder(app, env)
latexbuilder.post_process_images(tree)
assert "no matching candidate for image URI u'foo.*'" in \
app._warning.content[-1]
- assert set(latexbuilder.images.keys()) == set(['subdir/img.png',
- 'subdir/simg.png',
- 'img.png', 'img.pdf'])
- assert set(latexbuilder.images.values()) == set(['img.pdf', 'img.png',
- 'img1.png', 'simg.png'])
+ assert set(latexbuilder.images.keys()) == \
+ set(['subdir/img.png', 'subdir/simg.png', 'img.png', 'img.pdf',
+ 'svgimg.pdf'])
+ assert set(latexbuilder.images.values()) == \
+ set(['img.pdf', 'img.png', 'img1.png', 'simg.png', 'svgimg.pdf'])
def test_second_update():
# delete, add and "edit" (change saved mtime) some files and update again