def test_makeConnection(self):
        """
        L{Protocol.makeConnection} sets the given transport on itself, and
        then calls C{connectionMade}.
        """
        result = []
        class SomeProtocol(Protocol):
            def connectionMade(self):
                result.append(self.transport)

        transport = object()
        protocol = SomeProtocol()
        protocol.makeConnection(transport)
        self.assertEqual(result, [transport])

        L{Protocol.makeConnection} sets the given transport on itself, and
        then calls C{connectionMade}.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/test/test_protocol.py