'Test failed TLS negotiation.'

def testFailed(self):

    xmlstream.ssl = 1
    d = self.init.start()
    self.assertFailure(d, xmlstream.TLSFailed)
    self.xmlstream.dataReceived(("<failure    xmlns='%s'/>" % NS_XMPP_TLS))
    return d
