summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorshimizukawa <shimizukawa@gmail.com>2013-06-18 11:14:27 +0000
committershimizukawa <shimizukawa@gmail.com>2013-06-18 11:14:27 +0000
commit72c7b42d01197f30e2f9ea2bed364236466f684b (patch)
tree1242a9a76125bdad97e359d759f3f8306b9a8de4 /tests
parent2768577177acc5e07b2dd099feafaf209ad72187 (diff)
downloadsphinx-72c7b42d01197f30e2f9ea2bed364236466f684b.tar.gz
test_intl:external_link test case correction to fit to reST syntax.
Diffstat (limited to 'tests')
-rw-r--r--tests/roots/test-intl/external_links.po12
-rw-r--r--tests/roots/test-intl/external_links.txt8
-rw-r--r--tests/test_intl.py12
3 files changed, 16 insertions, 16 deletions
diff --git a/tests/roots/test-intl/external_links.po b/tests/roots/test-intl/external_links.po
index ba884f83..e4e67643 100644
--- a/tests/roots/test-intl/external_links.po
+++ b/tests/roots/test-intl/external_links.po
@@ -25,8 +25,8 @@ msgstr "EXTERNAL LINK TO Python_."
msgid "Internal link to `i18n with external links`_."
msgstr "`EXTERNAL LINKS`_ IS INTERNAL LINK."
-msgid "Inline link by `Sphinx <http://sphinx-doc.org>`_."
-msgstr "INLINE LINK BY `SPHINX <http://sphinx-doc.org>`_."
+msgid "Inline link by `Sphinx Site <http://sphinx-doc.org>`_."
+msgstr "INLINE LINK BY `THE SPHINX SITE <http://sphinx-doc.org>`_."
msgid "Unnamed link__."
msgstr "UNNAMED LINK__."
@@ -37,11 +37,11 @@ msgstr "LINK TARGET SWAPPED TRANSLATION"
msgid "link to external1_ and external2_."
msgstr "LINK TO external2_ AND external1_."
-msgid "link to `Sphinx <http://sphinx-doc.org>`_ and `Python <http://python.org>`_."
-msgstr "LINK TO `THE PYTHON <http://python.org>`_ AND `THE SPHINX <http://sphinx-doc.org>`_."
+msgid "link to `Sphinx Site <http://sphinx-doc.org>`_ and `Python Site <http://python.org>`_."
+msgstr "LINK TO `THE PYTHON SITE <http://python.org>`_ AND `THE SPHINX SITE <http://sphinx-doc.org>`_."
msgid "Multiple references in the same line"
msgstr "MULTIPLE REFERENCES IN THE SAME LINE"
-msgid "Link to `Sphinx <http://sphinx-doc.org>`_, `Python <http://python.org>`_, Python_, Unnamed__ and `i18n with external links`_."
-msgstr "LINK TO `EXTERNAL LINKS`_, Python_, `THE SPHINX <http://sphinx-doc.org>`_, UNNAMED__ AND `THE PYTHON <http://python.org>`_."
+msgid "Link to `Sphinx Site <http://sphinx-doc.org>`_, `Python Site <http://python.org>`_, Python_, Unnamed__ and `i18n with external links`_."
+msgstr "LINK TO `EXTERNAL LINKS`_, Python_, `THE SPHINX SITE <http://sphinx-doc.org>`_, UNNAMED__ AND `THE PYTHON SITE <http://python.org>`_."
diff --git a/tests/roots/test-intl/external_links.txt b/tests/roots/test-intl/external_links.txt
index 7f1d5a5b..96e3973d 100644
--- a/tests/roots/test-intl/external_links.txt
+++ b/tests/roots/test-intl/external_links.txt
@@ -8,11 +8,11 @@ External link to Python_.
Internal link to `i18n with external links`_.
-Inline link by `Sphinx <http://sphinx-doc.org>`_.
+Inline link by `Sphinx Site <http://sphinx-doc.org>`_.
Unnamed link__.
-.. _Python: http://python.org
+.. _Python: http://python.org/index.html
.. __: http://google.com
@@ -21,7 +21,7 @@ link target swapped translation
link to external1_ and external2_.
-link to `Sphinx <http://sphinx-doc.org>`_ and `Python <http://python.org>`_.
+link to `Sphinx Site <http://sphinx-doc.org>`_ and `Python Site <http://python.org>`_.
.. _external1: http://example.com/external1
.. _external2: http://example.com/external2
@@ -30,6 +30,6 @@ link to `Sphinx <http://sphinx-doc.org>`_ and `Python <http://python.org>`_.
Multiple references in the same line
=====================================
-Link to `Sphinx <http://sphinx-doc.org>`_, `Python <http://python.org>`_, Python_, Unnamed__ and `i18n with external links`_.
+Link to `Sphinx Site <http://sphinx-doc.org>`_, `Python Site <http://python.org>`_, Python_, Unnamed__ and `i18n with external links`_.
.. __: http://google.com
diff --git a/tests/test_intl.py b/tests/test_intl.py
index 4cc2f01c..81d1d911 100644
--- a/tests/test_intl.py
+++ b/tests/test_intl.py
@@ -235,7 +235,7 @@ def test_i18n_keep_external_links(app):
assert_elem_text_refs(
para0[0],
['EXTERNAL LINK TO', 'Python', '.'],
- ['http://python.org'])
+ ['http://python.org/index.html'])
# internal link check
assert_elem_text_refs(
@@ -246,7 +246,7 @@ def test_i18n_keep_external_links(app):
# inline link check
assert_elem_text_refs(
para0[2],
- ['INLINE LINK BY', 'SPHINX', '.'],
+ ['INLINE LINK BY', 'THE SPHINX SITE', '.'],
['http://sphinx-doc.org'])
# unnamed link check
@@ -263,16 +263,16 @@ def test_i18n_keep_external_links(app):
['http://example.com/external2', 'http://example.com/external1'])
assert_elem_text_refs(
para1[1],
- ['LINK TO', 'THE PYTHON', 'AND', 'THE SPHINX', '.'],
+ ['LINK TO', 'THE PYTHON SITE', 'AND', 'THE SPHINX SITE', '.'],
['http://python.org', 'http://sphinx-doc.org'])
# multiple references in the same line
para2 = secs[2].findall('paragraph')
assert_elem_text_refs(
para2[0],
- ['LINK TO', 'EXTERNAL LINKS', ',', 'Python', ',', 'THE SPHINX',
- ',', 'UNNAMED', 'AND', 'THE PYTHON', '.'],
- ['i18n-with-external-links', 'http://python.org',
+ ['LINK TO', 'EXTERNAL LINKS', ',', 'Python', ',',
+ 'THE SPHINX SITE', ',', 'UNNAMED', 'AND', 'THE PYTHON SITE', '.'],
+ ['i18n-with-external-links', 'http://python.org/index.html',
'http://sphinx-doc.org', 'http://google.com',
'http://python.org'])