summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-08-05 16:38:12 +0100
committerMichael Williamson <mike@zwobble.org>2014-08-05 16:38:12 +0100
commitf7c533df61cee5ef960e18dcf743fd167642fd85 (patch)
tree7dad652407ffedba612032148734573551fb7b54 /tests
parentef76dd48d78fc715ce428e07cec2401b3bfbee74 (diff)
Convert line breaks to <br>
Diffstat (limited to 'tests')
-rw-r--r--tests/conversion_tests.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/conversion_tests.py b/tests/conversion_tests.py
index 977e509..b28fe25 100644
--- a/tests/conversion_tests.py
+++ b/tests/conversion_tests.py
@@ -226,6 +226,13 @@ def empty_cells_are_preserved_in_table():
@istest
+def line_break_is_converted_to_br():
+ line_break = documents.line_break()
+ result = convert_document_element_to_html(line_break)
+ assert_equal("<br />", result.value)
+
+
+@istest
def images_are_converted_to_img_tags_with_data_uri():
image = documents.image(alt_text=None, content_type="image/png", open=lambda: io.BytesIO(b"abc"))
result = convert_document_element_to_html(image)