diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-02-25 19:21:48 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-02-25 19:21:48 +0000 |
| commit | 2329dbcbbc945437256569c789b127e454069c98 (patch) | |
| tree | 098a5b4a2447885948e5cafe02a86792984132b3 /tests | |
| parent | 283c8a0c75f3cfa121df95c23524c0141478fec1 (diff) | |
Tweak test cases
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/conversion_tests.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/conversion_tests.py b/tests/conversion_tests.py index 8f0a696..98359a7 100644 --- a/tests/conversion_tests.py +++ b/tests/conversion_tests.py @@ -159,9 +159,9 @@ def bold_runs_are_wrapped_in_strong_tags_by_default(): def bold_runs_can_be_configured_with_style_mapping(): result = convert_document_element_to_html( documents.run(children=[documents.text("Hello")], is_bold=True), - style_map=[_style_mapping("b => b")] + style_map=[_style_mapping("b => em")] ) - assert_equal("<b>Hello</b>", result.value) + assert_equal("<em>Hello</em>", result.value) @istest @@ -176,9 +176,9 @@ def italic_runs_are_wrapped_in_emphasis_tags_by_default(): def italic_runs_can_be_configured_with_style_mapping(): result = convert_document_element_to_html( documents.run(children=[documents.text("Hello")], is_italic=True), - style_map=[_style_mapping("i => i")] + style_map=[_style_mapping("i => strong")] ) - assert_equal("<i>Hello</i>", result.value) + assert_equal("<strong>Hello</strong>", result.value) @istest |
