'Bytes written to L{TLSMemoryBIOProtocol} before the handshake is
complete are received by the protocol on the other side of the
connection once the handshake succeeds.'

def test_writeBeforeHandshake(self):

    data = 'some    bytes'
    class SimpleSendingProtocol(Protocol, ):
        def connectionMade(self):
            self.transport.write(data)
    return self.writeBeforeHandshakeTest(SimpleSendingProtocol, data)
