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

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

python/setup.py: adapted to make Python Egg.
python/*.py: changed import statements to reflect new package structure of client and server.

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