Commits

Takayuki Shimizukawa  committed d8b0bfb

test_intl:external_link test case correction to fit to reST syntax.

  • Participants
  • Parent commits 9bfb539

Comments (0)

Files changed (3)

File tests/roots/test-intl/external_links.po

 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__."
 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>`_."

File tests/roots/test-intl/external_links.txt

 
 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
 
 
 
 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
 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

File tests/test_intl.py

     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(
     # 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
             ['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'])