aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2017-04-03 10:36:55 +0100
committerMichael Williamson <mike@zwobble.org>2017-04-03 10:36:55 +0100
commit401895857fc02d5cab9a41a1f5ea83b3ff11ba40 (patch)
tree9998d7fb0786cc1a0796b5dae9ac54d27b84e524
parentdfcac4e448635c1e43d7809ae92e3ec55bbcb2fd (diff)
Check reading of w:ins using common test code
-rw-r--r--tests/docx/body_xml_tests.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/docx/body_xml_tests.py b/tests/docx/body_xml_tests.py
index f0236fc..98296a1 100644
--- a/tests/docx/body_xml_tests.py
+++ b/tests/docx/body_xml_tests.py
@@ -536,15 +536,7 @@ class TableTests(object):
@istest
def children_of_w_ins_are_converted_normally():
- 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)
- )
+ _assert_children_are_converted_normally("w:ins")
@istest
def children_of_w_object_are_converted_normally():