diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-07-03 12:31:50 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-07-03 12:31:50 +0100 |
| commit | 8dce33362f5338953ed2a614e736c197e36b9984 (patch) | |
| tree | f7ab236ec7ed95f937e5d0b1125dcf4b8e1ff43c /tests/docx/body_xml_tests.py | |
| parent | f2db2bcf40c2c497a33b1f087b67111c3351a406 (diff) | |
Read comment references
Diffstat (limited to 'tests/docx/body_xml_tests.py')
| -rw-r--r-- | tests/docx/body_xml_tests.py | 6 |
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) |
