aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-08-30 11:27:51 +0100
committerMichael Williamson <mike@zwobble.org>2014-08-30 11:27:51 +0100
commit6ec6e3b4bb8b12ada9609af0bf0e6cd3775fdcef (patch)
tree5169420479172025ee3d9f06a99626d1d3bce133 /tests
parentce5a4bef9f49f37b934c32da45031d9be4f0f67b (diff)
Read footnote references
Diffstat (limited to 'tests')
-rw-r--r--tests/docx/document_xml_tests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/docx/document_xml_tests.py b/tests/docx/document_xml_tests.py
index b5b1e19..f95419b 100644
--- a/tests/docx/document_xml_tests.py
+++ b/tests/docx/document_xml_tests.py
@@ -316,6 +316,12 @@ class ReadXmlElementTests(object):
assert isinstance(footnote.body[0], documents.Paragraph)
@istest
+ def footnote_reference_has_id_read(self):
+ footnote_xml = xml_element("w:footnoteReference", {"w:id": "4"})
+ footnote = _read_and_get_document_xml_element(footnote_xml)
+ assert_equal("4", footnote.footnote_id)
+
+ @istest
def ignored_elements_are_ignored_without_message(self):
element = xml_element("w:bookmarkStart")
result = read_document_xml_element(element)