import pytest @pytest.mark.parametrize( "in_,out_unicode, out_html", [ ("", "", ""), (" ", " ", " "), ("A very simple test", "A very simple\u00a0test", "A very simple test"), ("Test", "Test", "Test"), (" Test", " Test", " Test"), ( "
In a couple of paragraphs
paragraph two
", "In a couple of\u00a0paragraphs
paragraph\u00a0two
", "In a couple of paragraphs
paragraph two
", ), ( 'Neither do PREs", "
Neither do PREs", "
Neither do PREs", ), ( "
But divs with paragraphs do!
But divs with paragraphs\u00a0do!
But divs with paragraphs do!
With my friend Mark.
", "With my friend\u00a0Mark.
", "With my friend Mark.
", ), ( "Really. Good.", "Really. Good.", "Really. Good.", ), ( "With, punctuation", "With, punctuation", "With, punctuation", ), ( "This is the content.
This is the\u00a0content.
This is the content.