Ignore:
Timestamp:
29/10/08 10:36:14 (12 years ago)
Author:
pjkersha
Message:

Renamed CredWallet? -> CredentialWallet?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/credentialwallet/test_credentialwallet.py

    r4380 r4381  
    2020                                                    CaseSensitiveConfigParser 
    2121from ndg.security.common.X509 import X509CertParse 
    22 from ndg.security.common.CredWallet import CredWallet, \ 
    23                                             CredWalletAttributeRequestDenied 
     22from ndg.security.common.credentialwallet import CredentialWallet, \ 
     23                                            CredentialWalletAttributeRequestDenied 
    2424 
    2525from os.path import expandvars as xpdVars 
     
    3131 
    3232 
    33 class CredWalletTestCase(unittest.TestCase): 
    34     """Unit test case for ndg.security.common.CredWallet.CredWallet class. 
     33class CredentialWalletTestCase(unittest.TestCase): 
     34    """Unit test case for ndg.security.common.credentialwallet.CredentialWallet class. 
    3535     
    3636    """ 
     
    5555         
    5656        try: 
    57             CredWallet.accessDenied = 'yes' 
     57            CredentialWallet.accessDenied = 'yes' 
    5858            self.fail("accessDenied class variable should be read-only") 
    5959        except Exception, e: 
     
    6161 
    6262        try: 
    63             CredWallet.accessGranted = False 
     63            CredentialWallet.accessGranted = False 
    6464            self.fail("accessGranted class variable should be read-only") 
    6565        except Exception, e: 
    6666            print("PASS - accessGranted class variable is read-only") 
    6767             
    68         assert(not CredWallet.accessDenied) 
    69         assert(CredWallet.accessGranted) 
     68        assert(not CredentialWallet.accessDenied) 
     69        assert(CredentialWallet.accessGranted) 
    7070         
    7171         
    7272    def test2SetAttributes(self): 
    7373         
    74         credWallet = CredWallet() 
     74        credWallet = CredentialWallet() 
    7575        credWallet.userX509Cert = \ 
    7676'''-----BEGIN CERTIFICATE----- 
     
    113113    def test3GetAttCertWithUserId(self): 
    114114                     
    115         credWallet = CredWallet(cfg=self.cfg.get('setUp', 'cfgFilePath')) 
     115        credWallet = CredentialWallet(cfg=self.cfg.get('setUp', 'cfgFilePath')) 
    116116        attCert = credWallet.getAttCert() 
    117117         
     
    123123    def test4GetAttCertWithUserX509Cert(self): 
    124124                     
    125         credWallet = CredWallet(cfg=self.cfg.get('setUp', 'cfgFilePath')) 
     125        credWallet = CredentialWallet(cfg=self.cfg.get('setUp', 'cfgFilePath')) 
    126126         
    127127        # Set a test individual user certificate to override the client  
     
    185185    def test5GetAttCertRefusedWithUserCert(self): 
    186186         
    187         credWallet = CredWallet(cfg=self.cfg.get('setUp', 'cfgFilePath'))     
     187        credWallet = CredentialWallet(cfg=self.cfg.get('setUp', 'cfgFilePath'))     
    188188        credWallet.userX509CertFilePath = self.cfg.get('setUp', 
    189189                                                       'userX509CertFilePath') 
     
    197197        try: 
    198198            attCert = credWallet.getAttCert() 
    199         except CredWalletAttributeRequestDenied, e: 
     199        except CredentialWalletAttributeRequestDenied, e: 
    200200            print "SUCCESS - obtained expected result: %s" % e 
    201201            return 
     
    207207         
    208208        # Call Site A Attribute Authority where user is registered 
    209         credWallet = CredWallet(cfg=self.cfg.get('setUp', 'cfgFilePath')) 
     209        credWallet = CredentialWallet(cfg=self.cfg.get('setUp', 'cfgFilePath')) 
    210210        attCert = credWallet.getAttCert() 
    211211 
Note: See TracChangeset for help on using the changeset viewer.