Пример #1
0
 def testAuthFailure(self):
     inv = Auth(cfg, cherrypy.log)
     res = inv.check_credentials("notauser", "password") or inv.check_credentials("jwatson", "notapassword")
     assert res == False
Пример #2
0
 def testAuthFailure(self):
     inv = Auth(cfg, cherrypy.log)
     res = inv.check_credentials('notauser',
                                 'password') or inv.check_credentials(
                                     'jwatson', 'notapassword')
     assert res == False
Пример #3
0
 def testAuthSuccess(self):
     inv = Auth(cfg, cherrypy.log)
     ret = inv.check_credentials("jwatson", "passwordwatson")
     assert ret == True
Пример #4
0
 def testAuthSuccess(self):
     inv = Auth(cfg, cherrypy.log)
     ret = inv.check_credentials('jwatson', 'passwordwatson')
     assert ret == True