'Our transport is properly hooked up to the wrappedProtocol when a
connection is made.'

def test_wrappedProtocolTransport(self):

    wf = endpoints._WrappingFactory(TestFactory())
    p = wf.buildProtocol(None)
    dummyTransport = object()
    p.makeConnection(dummyTransport)
    self.assertEqual(p.transport, dummyTransport)
    self.assertEqual(p._wrappedProtocol.transport, dummyTransport)
