diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-12-16 15:23:02 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-12-16 15:23:02 +0000 |
| commit | 4e77045d7808a49254c9caca2401af32ef0ea9af (patch) | |
| tree | 80191d7fe1a83f75d87f7b41ced551b8ac194377 /tests/conversion_tests.py | |
| parent | 85c3f4640a4ec423859906fd5adac946c72ce6de (diff) | |
Set default paragraph rule to require fresh p element
Diffstat (limited to 'tests/conversion_tests.py')
| -rw-r--r-- | tests/conversion_tests.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/conversion_tests.py b/tests/conversion_tests.py index a041561..e3b4c9e 100644 --- a/tests/conversion_tests.py +++ b/tests/conversion_tests.py @@ -16,6 +16,17 @@ def plain_paragraph_is_converted_to_plain_paragraph(): @istest +def multiple_paragraphs_are_converted_to_multiple_paragraphs(): + result = convert_document_element_to_html( + documents.document([ + documents.paragraph(children=[_run_with_text("Hello")]), + documents.paragraph(children=[_run_with_text("there")]), + ]) + ) + assert_equal('<p>Hello</p><p>there</p>', result.value) + + +@istest def empty_paragraphs_are_ignored(): result = convert_document_element_to_html( documents.paragraph(children=[_run_with_text("")]) |
