def word_document_containing_one_pararaph_is_converted_to_single_p_element(): docx_file = FakeDocxFile({ "word/document.xml": _SIMPLE_WORD_DOCUMENT, "word/numbering.xml": _NUMBERING_XML }) result = wordbridge.convert_to_html(docx_file) assert_equal("<p>Hello.</p>", result)
def default_styles_convert_bullets_to_lists(): docx_file = FakeDocxFile({ "word/document.xml": _WORD_DOCUMENT_WITH_BULLETS, "word/numbering.xml": _NUMBERING_XML }) result = wordbridge.convert_to_html(docx_file) assert_equal("<ul><li>Green</li></ul>", result)