'Set up a server factory with an authenticator factory function.'

def setUp(self):

    class TestAuthenticator(object, ):
        def __init__(self):
            self.xmlstreams = []
        def associateWithStream(self, xs):
            self.xmlstreams.append(xs)
    def authenticatorFactory():
        return TestAuthenticator()
    self.factory = xmlstream.XmlStreamServerFactory(authenticatorFactory)
