Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/p/o/portfoliyo-HEAD/portfoliyo/tests/model/village/test_models.py   portfoliyo(Download)
    def test_escapes_html(self, monkeypatch):
        """Escapes any HTML in the original text."""
        assert models.text2html('<b>') == '&lt;b&gt;'
 
 
    def test_replaces_newlines(self):
        """Replaces newlines with <br>."""
        assert models.text2html('foo\nbar') == 'foo<br>bar'