def test_entityConversion(self):
        """
        When flattening an HTML entity, it should flatten out to the utf-8
        representation if possible.
        """
        element = Element(loader=XMLString('<p>&#9731;</p>'))
        return self.assertFlattensTo(element, b'<p>\xe2\x98\x83</p>')

        When flattening an HTML entity, it should flatten out to the utf-8
        representation if possible.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_template.py