diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-06-15 15:09:09 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-06-15 15:09:09 +0100 |
| commit | dc419cfb2808005f5b2d0ba4631ebbfc0fe98268 (patch) | |
| tree | bec7c1218d76aec0133439cdbefdce6ee2c1e3dd /tests/mammoth_tests.py | |
| parent | 3ea79e23d3211b937c2c75f1390b212b25cc2fcb (diff) | |
Add text box support
Diffstat (limited to 'tests/mammoth_tests.py')
| -rw-r--r-- | tests/mammoth_tests.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/mammoth_tests.py b/tests/mammoth_tests.py index d9f1093..18f7b48 100644 --- a/tests/mammoth_tests.py +++ b/tests/mammoth_tests.py @@ -103,6 +103,13 @@ def endnotes_are_appended_to_text(): @istest +def text_boxes_are_read(): + with open(test_path("text-box.docx"), "rb") as fileobj: + result = mammoth.convert_to_html(fileobj=fileobj) + assert_equal('<p>Datum plane</p>', result.value) + + +@istest def transform_document_is_applied_to_document_before_conversion(): def transform_document(document): document.children[0].style_id = "Heading1" |
