def testAuthFailure(self): inv = Auth(cfg, cherrypy.log) res = inv.check_credentials("notauser", "password") or inv.check_credentials("jwatson", "notapassword") assert res == False
def testAuthFailure(self): inv = Auth(cfg, cherrypy.log) res = inv.check_credentials('notauser', 'password') or inv.check_credentials( 'jwatson', 'notapassword') assert res == False
def testAuthSuccess(self): inv = Auth(cfg, cherrypy.log) ret = inv.check_credentials("jwatson", "passwordwatson") assert ret == True
def testAuthSuccess(self): inv = Auth(cfg, cherrypy.log) ret = inv.check_credentials('jwatson', 'passwordwatson') assert ret == True