diff --git a/tests/test_BackendAD.py b/tests/test_BackendAD.py index 9af9fc6..0d7b870 100644 --- a/tests/test_BackendAD.py +++ b/tests/test_BackendAD.py @@ -74,17 +74,6 @@ assert res == False @travis_disabled - def testMissingParam(self): - cfg2 = {} - return True - try: - inv = Backend(cfg2, cherrypy.log, u'test☭', attr, 'sAMAccountName') - except MissingKey: - return - else: - raise AssertionError("expected an exception") - - @travis_disabled def testSetPassword(self): inv = Backend(cfg, cherrypy.log, u'test☭', attr, 'sAMAccountName') try: diff --git a/tests/test_BackendDemo.py b/tests/test_BackendDemo.py index 70a4b0e..e7d94a8 100644 --- a/tests/test_BackendDemo.py +++ b/tests/test_BackendDemo.py @@ -69,16 +69,6 @@ res = inv.auth('notauser', 'password') or inv.auth('default_user', 'notapassword') assert res == False - def testMissingParam(self): - cfg2 = {} - return True - try: - inv = Backend(cfg2, cherrypy.log, 'test', attr, 'uid') - except MissingKey: - return - else: - raise AssertionError("expected an exception") - def testGetUser(self): inv = Backend(cfg, cherrypy.log, 'test', attr, 'uid') inv.add_user(default_user) diff --git a/tests/test_BackendLdap.py b/tests/test_BackendLdap.py index d467bad..f969324 100644 --- a/tests/test_BackendLdap.py +++ b/tests/test_BackendLdap.py @@ -128,16 +128,6 @@ res = inv.auth('notauser', 'password') or inv.auth(u'jwatsoné', 'notapasswordé') assert res == False - def testMissingParam(self): - cfg2 = {} - return True - try: - inv = Backend(cfg2, cherrypy.log, 'ldap', attr, 'uid') - except MissingKey: - return - else: - raise AssertionError("expected an exception") - def testGetUser(self): inv = Backend(cfg, cherrypy.log, 'ldap', attr, 'uid') ret = inv.get_user(u'jwatsoné')