From 6ec6e3b4bb8b12ada9609af0bf0e6cd3775fdcef Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 30 Aug 2014 11:27:51 +0100 Subject: Read footnote references --- tests/docx/document_xml_tests.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/docx') 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 @@ -315,6 +315,12 @@ class ReadXmlElementTests(object): assert_equal("4", footnote.id) 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") -- cgit v1.2.3