mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-22 09:24:21 +01:00
remove useless tests
This commit is contained in:
parent
c5dae7039a
commit
4bd6314b3b
@ -73,17 +73,6 @@ class TestError(object):
|
|||||||
res = inv.auth('notauser', 'password') or inv.auth(u'☭default_user', 'notapassword')
|
res = inv.auth('notauser', 'password') or inv.auth(u'☭default_user', 'notapassword')
|
||||||
assert res == False
|
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
|
@travis_disabled
|
||||||
def testSetPassword(self):
|
def testSetPassword(self):
|
||||||
inv = Backend(cfg, cherrypy.log, u'test☭', attr, 'sAMAccountName')
|
inv = Backend(cfg, cherrypy.log, u'test☭', attr, 'sAMAccountName')
|
||||||
|
@ -69,16 +69,6 @@ class TestError(object):
|
|||||||
res = inv.auth('notauser', 'password') or inv.auth('default_user', 'notapassword')
|
res = inv.auth('notauser', 'password') or inv.auth('default_user', 'notapassword')
|
||||||
assert res == False
|
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):
|
def testGetUser(self):
|
||||||
inv = Backend(cfg, cherrypy.log, 'test', attr, 'uid')
|
inv = Backend(cfg, cherrypy.log, 'test', attr, 'uid')
|
||||||
inv.add_user(default_user)
|
inv.add_user(default_user)
|
||||||
|
@ -128,16 +128,6 @@ class TestError(object):
|
|||||||
res = inv.auth('notauser', 'password') or inv.auth(u'jwatsoné', 'notapasswordé')
|
res = inv.auth('notauser', 'password') or inv.auth(u'jwatsoné', 'notapasswordé')
|
||||||
assert res == False
|
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):
|
def testGetUser(self):
|
||||||
inv = Backend(cfg, cherrypy.log, 'ldap', attr, 'uid')
|
inv = Backend(cfg, cherrypy.log, 'ldap', attr, 'uid')
|
||||||
ret = inv.get_user(u'jwatsoné')
|
ret = inv.get_user(u'jwatsoné')
|
||||||
|
Loading…
Reference in New Issue
Block a user