diff --git a/tests/test_BackendLdap.py b/tests/test_BackendLdap.py index 201c725..177cc8d 100644 --- a/tests/test_BackendLdap.py +++ b/tests/test_BackendLdap.py @@ -75,11 +75,13 @@ def testAuthSuccess(self): inv = Backend(cfg, cherrypy.log, 'ldap') - return True + ret = inv.auth('jwatson', 'passwordwatson') + assert ret == True def testAuthFailure(self): inv = Backend(cfg, cherrypy.log, 'ldap') - return True + res = inv.auth('notauser', 'password') or inv.auth('jwatson', 'notapassword') + assert res == False def testMissingParam(self): cfg2 = {}