Esempio n. 1
0
 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
Esempio n. 2
0
 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
Esempio n. 3
0
 def testAuthSuccess(self):
     inv = Backend(cfg, cherrypy.log, 'test', attr, 'uid')
     ret = inv.auth('admin', 'admin')
     assert ret == True
Esempio n. 4
0
 def testAuthSuccess(self):
     inv = Backend(cfg, cherrypy.log, 'test', attr, 'uid')
     ret = inv.auth('admin', 'admin')
     assert ret == True