'Test setting ANONYMOUS as the authentication mechanism.'

def test_anonymous(self):

    self.authenticator.jid = jid.JID('example.com')
    self.authenticator.password = None
    name = u'ANONYMOUS'
    self.assertEqual(name, self._setMechanism(name))
