aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2017-04-03 10:31:09 +0100
committerMichael Williamson <mike@zwobble.org>2017-04-03 10:31:09 +0100
commitf48379ed2e25e6e5fb23214fd48e522c2b4af6c1 (patch)
tree93691a6660a1fe0d7adf4e33147a17b7a84772ca /tests
parentea7996086d5f67913f4a96ce0173593e936d03b8 (diff)
Read children of w:object elements
Diffstat (limited to 'tests')
-rw-r--r--tests/docx/body_xml_tests.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/docx/body_xml_tests.py b/tests/docx/body_xml_tests.py
index 51d80e9..f0236fc 100644
--- a/tests/docx/body_xml_tests.py
+++ b/tests/docx/body_xml_tests.py
@@ -547,9 +547,17 @@ def children_of_w_ins_are_converted_normally():
)
@istest
+def children_of_w_object_are_converted_normally():
+ _assert_children_are_converted_normally("w:object")
+
+@istest
def children_of_w_smart_tag_are_converted_normally():
+ _assert_children_are_converted_normally("w:smartTag")
+
+
+def _assert_children_are_converted_normally(tag_name):
element = xml_element("w:p", {}, [
- xml_element("w:smartTag", {}, [
+ xml_element(tag_name, {}, [
xml_element("w:r")
])
])