'Test setting PLAIN as the authentication mechanism.'

def test_plain(self):

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