aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-07-03 12:31:50 +0100
committerMichael Williamson <mike@zwobble.org>2016-07-03 12:31:50 +0100
commit8dce33362f5338953ed2a614e736c197e36b9984 (patch)
treef7ab236ec7ed95f937e5d0b1125dcf4b8e1ff43c /tests
parentf2db2bcf40c2c497a33b1f087b67111c3351a406 (diff)
Read comment references
Diffstat (limited to 'tests')
-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)