def test_formatRootLongUnicodeString(self):
        """
        The C{_formatRoot} method formats a long unicode string using the
        built-in repr with an ellipsis.
        """
        e = self.makeFlattenerError()
        longString = nativeString('abcde-' * 20)
        self.assertEqual(e._formatRoot(longString),
                        repr('abcde-abcde-abcde-ab<...>e-abcde-abcde-abcde-'))

        The C{_formatRoot} method formats a long unicode string using the
        built-in repr with an ellipsis.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_error.py