def setUp(self): cas_url = None path_logout = None path_toskip = None remember_name = None self.ccp = CCP(cas_url, path_logout, path_toskip, remember_name)
class AuthTest(unittest.TestCase): def setUp(self): cas_url = None path_logout = None path_toskip = None remember_name = None self.ccp = CCP(cas_url, path_logout, path_toskip, remember_name) def test_auth(self): # whatever they submit, authenticate is called, which implies login is set, # validate # /!\ IT MUST BE ONLY ONE identifier => the one really doing the authent # TODO: had a variable in the environment specifying those credentials were # retrieved by the CAS server and so already authenticated identity = {'login': '', 'pass': ''} environ = {} self.assertNotEqual(self.ccp.authenticate(environ, identity), True) def test_implements(self): verifyClass(IAuthenticator, CCP, tentative=True)
class AuthTest(unittest.TestCase): def setUp(self): cas_url = None path_logout = None path_toskip = None remember_name = None self.ccp = CCP(cas_url, path_logout, path_toskip, remember_name) def test_auth(self): # whatever they submit, authenticate is called, which implies login is set, # validate # /!\ IT MUST BE ONLY ONE identifier => the one really doing the authent # TODO: had a variable in the environment specifying those credentials were # retrieved by the CAS server and so already authenticated identity = {'login':'', 'pass':''} environ = {} self.assertNotEqual(self.ccp.authenticate(environ,identity),True) def test_implements(self): verifyClass(IAuthenticator, CCP, tentative=True)