コード例 #1
0
ファイル: test_authLdap.py プロジェクト: kakwa/dnscherry
 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
ファイル: test_authLdap.py プロジェクト: shenjinian/dnscherry
 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
ファイル: test_authLdap.py プロジェクト: kakwa/dnscherry
 def testAuthSuccess(self):
     inv = Auth(cfg, cherrypy.log)
     ret = inv.check_credentials("jwatson", "passwordwatson")
     assert ret == True
コード例 #4
0
ファイル: test_authLdap.py プロジェクト: shenjinian/dnscherry
 def testAuthSuccess(self):
     inv = Auth(cfg, cherrypy.log)
     ret = inv.check_credentials('jwatson', 'passwordwatson')
     assert ret == True