Exemplo n.º 1
0
 def test_replaces_newlines(self):
     """Replaces newlines with <br>."""
     assert models.text2html('foo\nbar') == 'foo<br>bar'
Exemplo n.º 2
0
 def test_replaces_newlines(self):
     """Replaces newlines with <br>."""
     assert models.text2html('foo\nbar') == 'foo<br>bar'
Exemplo n.º 3
0
 def test_escapes_html(self, monkeypatch):
     """Escapes any HTML in the original text."""
     assert models.text2html('<b>') == '&lt;b&gt;'
Exemplo n.º 4
0
 def test_escapes_html(self, monkeypatch):
     """Escapes any HTML in the original text."""
     assert models.text2html('<b>') == '&lt;b&gt;'