'Test failure of an initialization step.'

def testFailure(self):

    class Initializer:
        def initialize(self):
            raise TestError
    init = Initializer()
    self.xmlstream.initializers = [init]
    self.authenticator.initializeStream()
    self.assertEqual([init], self.xmlstream.initializers)
    self.assertFalse(self.gotAuthenticated)
    self.assertNotIdentical(None, self.initFailure)
    self.assertTrue(self.initFailure.check(TestError))
