def testAuthFailure(self): inv = Backend(cfg, cherrypy.log, 'test', attr, 'uid') res = inv.auth('notauser', 'password') or inv.auth('default_user', 'notapassword') assert res == False
def testAuthFailure(self): inv = Backend(cfg, cherrypy.log, 'test', attr, 'uid') res = inv.auth('notauser', 'password') or inv.auth( 'default_user', 'notapassword') assert res == False
def testAuthSuccess(self): inv = Backend(cfg, cherrypy.log, 'test', attr, 'uid') ret = inv.auth('admin', 'admin') assert ret == True
def testAuthSuccess(self): inv = Backend(cfg, cherrypy.log, 'test', attr, 'uid') ret = inv.auth('admin', 'admin') assert ret == True