summaryrefslogtreecommitdiff
path: root/tests/test_intl.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_intl.py')
-rw-r--r--tests/test_intl.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/test_intl.py b/tests/test_intl.py
index 8a83b711a..942248cfc 100644
--- a/tests/test_intl.py
+++ b/tests/test_intl.py
@@ -780,9 +780,13 @@ def test_xml_footnotes(app, warning):
assert_elem(
para0[0],
['I18N WITH FOOTNOTE', 'INCLUDE THIS CONTENTS',
- '2', '[ref]', '1', '100', '*', '.'],
+ '2', '[ref]', '1', '100', '*', '. SECOND FOOTNOTE_REF', '100', '.'],
['i18n-with-footnote', 'ref'])
+ # check node_id for footnote_references which refer same footnote (refs: #3002)
+ assert para0[0][4].text == para0[0][6].text == '100'
+ assert para0[0][4].attrib['ids'] != para0[0][6].attrib['ids']
+
footnote0 = secs[0].findall('footnote')
assert_elem(
footnote0[0],
@@ -834,8 +838,8 @@ def test_xml_footnote_backlinks(app):
footnote0 = secs[0].findall('footnote')
for footnote in footnote0:
ids = footnote.attrib.get('ids')
- backrefs = footnote.attrib.get('backrefs')
- assert refid2id[ids] == backrefs
+ backrefs = footnote.attrib.get('backrefs').split()
+ assert refid2id[ids] in backrefs
@sphinx_intl