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.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/creole/tests/test_html2textile.py b/creole/tests/test_html2textile.py
index f02fced..243b3c6 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
@@ -35,7 +35,7 @@ class TextileTests(BaseCreoleTest):
<p>less-than sign: &lt;<br />
greater-than sign: &gt;</p>
""",
-# debug=True
+ # debug=True
)
def test_preformat_unknown_nodes(self):
@@ -46,22 +46,22 @@ 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}
+ emitter_kwargs={"unknown_emit": preformat_unknown_nodes},
)
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,11 +75,11 @@ 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>
""",
)
-if __name__ == '__main__':
+if __name__ == "__main__":
unittest.main()