def test_repr(self):
        """
        The C{repr} of a L{failure.Failure} shows the type and string
        representation of the underlying exception.
        """
        f = getDivisionFailure()
        typeName = reflect.fullyQualifiedName(ZeroDivisionError)
        self.assertEqual(
            repr(f),
            '<twisted.python.failure.Failure '
            '%s: division by zero>' % (typeName,))

        The C{repr} of a L{failure.Failure} shows the type and string
        representation of the underlying exception.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_failure.py