'If some data is written to the transport in C{connectionMade}, but
C{handshakeDone} doesn\'t like something it sees about the handshake, it
can use C{abortConnection} to ensure that the application never
receives that data.'

def test_handshakeStopWriting(self):

    (client, server, pump) = handshakingClientAndServer('untrustworthy', True)
    pump.flush()
    self.assertEqual(server.wrappedProtocol.received, [])
