aboutsummaryrefslogtreecommitdiff
path: root/tests/docx
diff options
context:
space:
mode:
Diffstat (limited to 'tests/docx')
-rw-r--r--tests/docx/body_xml_tests.py6
1 files changed, 6 insertions, 0 deletions
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
@@ -577,6 +577,12 @@ class ReadXmlElementTests(object):
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")
result = _read_document_xml_element(element)