summaryrefslogtreecommitdiff
path: root/tests/test_build.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-01-02 20:51:22 +0100
committerGeorg Brandl <georg@python.org>2010-01-02 20:51:22 +0100
commit6b13a28c1152b014a4e7d0ac27f8f5b960be3d75 (patch)
tree0b1e5d935f0f9daa0b97e75ad6a5647bbd01da69 /tests/test_build.py
parent32437e45bd3c0b47349c7eee582ec61e693cf243 (diff)
downloadsphinx-git-6b13a28c1152b014a4e7d0ac27f8f5b960be3d75.tar.gz
Make extlinks more flexible: use string substitution to build the full URL.
Diffstat (limited to 'tests/test_build.py')
-rw-r--r--tests/test_build.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_build.py b/tests/test_build.py
index a54d188d8..fd2c56a43 100644
--- a/tests/test_build.py
+++ b/tests/test_build.py
@@ -121,6 +121,11 @@ HTML_XPATH = {
'bom.html': {
".//title": " File with UTF-8 BOM",
},
+ 'extensions.html': {
+ ".//a[@href='http://python.org/dev/']": "http://python.org/dev/",
+ ".//a[@href='http://bugs.python.org/issue1000']": "issue 1000",
+ ".//a[@href='http://bugs.python.org/issue1042']": "explicit caption",
+ },
'_static/statictmpl.html': {
".//project": 'Sphinx <Tests>',
},