'L{ESMTPClient} can authenticate using the I{LOGIN} SASL mechanism.
@see: U{http://sepp.oetiker.ch/sasl-2.1.19-ds/draft-murchison-sasl-login-00.txt}'

def test_loginAuth(self):

    realm = DummyRealm()
    p = cred.portal.Portal(realm)
    p.registerChecker(DummyChecker())
    server = DummyESMTP({'LOGIN': LOGINCredentials})
    server.portal = p
    client = MyESMTPClient('testpassword')
    cAuth = smtp.LOGINAuthenticator('testuser')
    client.registerAuthenticator(cAuth)
    d = self.loopback(server, client)
    d.addCallback((lambda x: self.assertTrue(server.authenticated)))
    return d
