

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

    class SomeProtocol(Protocol):

        def connectionMade(self):
            result.append(self.transport)
    transport = object()
    protocol = SomeProtocol()
    protocol.makeConnection(transport)
    self.assertEqual(self, [transport])

dataset/ETHPy150Open twisted/twisted/twisted/internet/test/test_protocol.py ProtocolTests.test_makeConnection/VarMisuse@69/121 `result`->`self`