def testAuthFailure(self): inv = Backend(cfg, cherrypy.log, 'ldap', attr, 'uid') res = inv.auth('notauser', 'password') or inv.auth( u'jwatsoné', 'notapasswordé') assert res == False
def testAuthFailure(self): inv = Backend(cfg, cherrypy.log, 'ldap', attr, 'uid') res = inv.auth('notauser', 'password') or inv.auth(u'jwatsoné', 'notapasswordé') assert res == False
def testAuthSuccess(self): inv = Backend(cfg, cherrypy.log, 'ldap', attr, 'uid') ret = inv.auth(u'jwatsoné', u'passwordwatsoné') assert ret == True