summaryrefslogtreecommitdiff
path: root/creole/tests/test_html2textile.py
diff options
context:
space:
mode:
Diffstat (limited to 'creole/tests/test_html2textile.py')
-rw-r--r--creole/tests/test_html2textile.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/creole/tests/test_html2textile.py b/creole/tests/test_html2textile.py
index f02fced..b26b3e9 100644
--- a/creole/tests/test_html2textile.py
+++ b/creole/tests/test_html2textile.py
@@ -4,7 +4,7 @@
"""
html2textile unittest
~~~~~~~~~~~~~~~~~~~~~
-
+
Unittests for special cases which only works in the html2textile way.
Note: This only works fine if there is no problematic whitespace handling.
@@ -13,7 +13,7 @@
:license: GNU GPL v3 or above, see LICENSE for more details.
"""
-from __future__ import division, absolute_import, print_function, unicode_literals
+
import unittest
@@ -46,13 +46,13 @@ class TextileTests(BaseCreoleTest):
textile_string="""
111 <<pre>><x><</pre>>foo<<pre>></x><</pre>> 222
333<<pre>><x foo1="bar1"><</pre>>foobar<<pre>></x><</pre>>444
-
+
555<<pre>><x /><</pre>>666
""",
html_string="""
<p>111 <x>foo</x> 222<br />
333<x foo1="bar1">foobar</x>444</p>
-
+
<p>555<x />666</p>
""",
emitter_kwargs={"unknown_emit":preformat_unknown_nodes}
@@ -61,7 +61,7 @@ class TextileTests(BaseCreoleTest):
def test_transparent_unknown_nodes(self):
"""
transparent_unknown_nodes is the default unknown_emit:
-
+
Remove all unknown html tags and show only
their child nodes' content.
"""
@@ -75,7 +75,7 @@ class TextileTests(BaseCreoleTest):
html_string="""
<p>111 <x>foo</x> 222<br />
333<x foo1="bar1">foobar</x>444</p>
-
+
<p>555<x />666</p>
""",
)