'Test setting DIGEST-MD5 as the authentication mechanism.'

def test_digest(self):

    self.authenticator.jid = jid.JID('test@example.com')
    self.authenticator.password = 'secret'
    name = u'DIGEST-MD5'
    self.assertEqual(name, self._setMechanism(name))
