def test_str(self):
        """
        The default message of L{ConnectionAborted} is a sentence which points
        to L{ITCPTransport.abortConnection()}
        """
        self.assertEqual(
            ("Connection was aborted locally"
             " using ITCPTransport.abortConnection."),
            str(error.ConnectionAborted()),
        )

        The default message of L{ConnectionAborted} is a sentence which points
        to L{ITCPTransport.abortConnection()}
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/test/test_error.py