source: TI12-security/trunk/python/Tests/SessionMgrTest.py @ 4384

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/Tests/SessionMgrTest.py@4384
Revision 4384, 1.2 KB checked in by pjkersha, 12 years ago (diff)

SessionMgr? -> SessionManager?

  • Property svn:executable set to *
Line 
1#!/bin/env python
2
3import unittest
4from ndg.security.server.Session import *
5
6
7class SessionManagerTestCase(unittest.TestCase):
8   
9    def setUp(self):
10        """Nb. Credential Repository interface dynamic load is implict"""
11        self.propFilePath = './sessionMgrProperties.xml'
12        self.sessMgr = SessionManager(propFilePath=self.propFilePath)
13   
14    def tearDown(self):
15        pass
16
17    def testExplicitReadPropAndLoadCredentialRepositoryInt(self):
18        '''Test for loading Credential Repository SEPARATE to __init__'''
19        sessMgr = SessionManager()
20        sessMgr.readProperties(self.propFilePath)
21        sessMgr.loadCredentialRepositoryInterface()
22       
23    def testCredentialRepositoryAudit(self):
24        import pdb;pdb.set_trace()
25        self.sessMgr.auditCredentialRepository()
26                               
27class SessionManagerTestSuite(unittest.TestSuite):
28    def __init__(self):
29        map = map(SessionManagerTestCase,
30                  (testExplicitReadPropAndLoadCredentialRepositoryInt,
31                   testCredentialRepositoryAudit)
32                 )
33        unittest.TestSuite.__init__(self, map)
34                                       
35if __name__ == "__main__":
36    unittest.main()
Note: See TracBrowser for help on using the repository browser.