From 85cc3f93c01312a907fd017d34bc2e5542cac670 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 14 Dec 2013 17:33:13 +0000 Subject: Plumbing to get full stack working --- tests/mammoth_tests.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'tests/mammoth_tests.py') diff --git a/tests/mammoth_tests.py b/tests/mammoth_tests.py index d1492b3..bfa88b5 100644 --- a/tests/mammoth_tests.py +++ b/tests/mammoth_tests.py @@ -11,3 +11,20 @@ def docx_containing_one_paragraph_is_converted_to_single_p_element(): result = mammoth.convert_to_html(fileobj=fileobj) assert_equal("

Walking on imported air

", result.value) assert_equal([], result.messages) + + +@istest +def inline_images_are_included_in_output(): + with open(test_path("tiny-picture.docx"), "rb") as fileobj: + result = mammoth.convert_to_html(fileobj=fileobj) + assert_equal("""

""", result.value) + assert_equal([], result.messages) + + +@istest +def simple_list_is_converted_to_list_elements(): + with open(test_path("simple-list.docx"), "rb") as fileobj: + result = mammoth.convert_to_html(fileobj=fileobj) + assert_equal([], result.messages) + assert_equal("", result.value) + -- cgit v1.2.3