def test_returns_safe_text(self): chunk = self._new_chunk("One helluva yarn.") self.assertIsInstance(chunk.text_as_html(), SafeText)