'Methods defined on the wrapped L{Protocol} are accessible from the
L{Protocol} returned from C{connect}\'s L{Deferred}.'

def test_methodsAvailable(self):

    connecting = self.wrapper.connect(self.factory)
    pump = self.completer.succeedOnce()
    proto = self.successResultOf(connecting)
    proto.sendString('spam')
    self.assertEqual(pump.clientIO.getOutBuffer(), '4:SPAM,')
