def test_makeConnection(self):
        class TestProtocol(Protocol):
            transport = None
            def makeConnection(self, transport):
                self.transport = transport

        server = TestProtocol()
        client = TestProtocol()
        loopback.loopbackAsync(server, client)
        self.failIfEqual(client.transport, None)
        self.failIfEqual(server.transport, None)
Test that the client and server protocol both have makeConnection
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/test_loopback.py/LoopbackAsyncTestCase.test_makeConnection