aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-12-01 20:47:05 +0000
committerMichael Williamson <mike@zwobble.org>2013-12-01 20:47:05 +0000
commit4d26fc0b174beccd0129220de74fe0b44c6c7edf (patch)
tree97633a4d0198e64c9ee9522825efcbef4d3a63a4 /tests
parentb167af309185c04815c07271b7f8ed8db1d485db (diff)
Add support for w:ins
Diffstat (limited to 'tests')
-rw-r--r--tests/docx/document_xml_tests.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/docx/document_xml_tests.py b/tests/docx/document_xml_tests.py
index e643efb..69286eb 100644
--- a/tests/docx/document_xml_tests.py
+++ b/tests/docx/document_xml_tests.py
@@ -112,6 +112,18 @@ class ReadXmlElementTests(object):
element = xml_element("w:tab")
tab = _read_and_get_document_xml_element(element)
assert_equal(documents.tab(), tab)
+
+ @istest
+ def children_of_w_ins_are_converted_normally(self):
+ element = xml_element("w:p", {}, [
+ xml_element("w:ins", {}, [
+ xml_element("w:r")
+ ])
+ ])
+ assert_equal(
+ documents.paragraph([documents.run([])]),
+ _read_and_get_document_xml_element(element)
+ )
@istest
def ignored_elements_are_ignored_without_message(self):