From f48379ed2e25e6e5fb23214fd48e522c2b4af6c1 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 3 Apr 2017 10:31:09 +0100 Subject: Read children of w:object elements --- tests/docx/body_xml_tests.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tests') 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 @@ -546,10 +546,18 @@ def children_of_w_ins_are_converted_normally(): _read_and_get_document_xml_element(element) ) +@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") ]) ]) -- cgit v1.2.3