From 8dce33362f5338953ed2a614e736c197e36b9984 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 3 Jul 2016 12:31:50 +0100 Subject: Read comment references --- tests/docx/body_xml_tests.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/docx') diff --git a/tests/docx/body_xml_tests.py b/tests/docx/body_xml_tests.py index e35110f..c56cfc5 100644 --- a/tests/docx/body_xml_tests.py +++ b/tests/docx/body_xml_tests.py @@ -576,6 +576,12 @@ class ReadXmlElementTests(object): footnote = _read_and_get_document_xml_element(footnote_xml) assert_equal("4", footnote.note_id) + @istest + def comment_reference_has_id_read(self): + comment_reference_xml = xml_element("w:commentReference", {"w:id": "4"}) + comment_reference = _read_and_get_document_xml_element(comment_reference_xml) + assert_equal(documents.CommentReference("4"), comment_reference) + @istest def ignored_elements_are_ignored_without_message(self): element = xml_element("w:bookmarkEnd") -- cgit v1.2.3