Ignore:
Timestamp:
14/05/09 17:13:33 (10 years ago)
Author:
pjkersha
Message:

Completed fixes to unit tests for move to 'unit' package.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/unit/wsgi/authn/test_authn.py

    r5290 r5291  
    8484                                extra_environ={'REMOTE_USER': 'testuser'}, 
    8585                                status=403) 
    86         self.assert_(response.status == 403) 
    8786 
    8887    def test03Catch401WithLoggedIn(self): 
    89         try: 
    90             response = self.app.get('/test_401WithLoggedIn') 
    91              
    92         except paste.fixture.AppError, e: 
    93             self.failIf('403 Forbidden' not in str(e), 
    94                         "Expecting 403 Forbidden status") 
     88        response = self.app.get('/test_401WithLoggedIn',  
     89                                extra_environ={'REMOTE_USER': 'testuser'}, 
     90                                status=403) 
    9591         
    9692    def test04Catch200WithNotLoggedIn(self): 
Note: See TracChangeset for help on using the changeset viewer.