Ignore:
Timestamp:
16/02/09 10:57:37 (11 years ago)
Author:
cbyrom
Message:

Add new test suite for RESTful client + update various other test classes to cope with changes to client + proxy uses.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ndgCommon/trunk/ndg/common/unittests/clients/xmldb/eXist/testatomclient.py

    r4942 r4978  
    1212from ndg.common.src.models import AtomState 
    1313from ndg.common.src.models.vocabtermdata import VocabTermData as VTD 
     14import ndg.common.src.lib.utilities as utils 
    1415 
    1516class TestCase(unittest.TestCase):  
     
    2728        # NB, if running tests on a local db, feedparser, used by feedclient won't 
    2829        # pick up any 'no_proxy' settings - so  
    29         if self.utils.host == 'localhost' and os.environ.has_key(tc.PROXY_KEY): 
    30             self.oldProxy = os.environ[tc.PROXY_KEY] 
    31             del os.environ[tc.PROXY_KEY] 
     30        if self.utils.host == 'localhost' and os.environ.has_key(utils.PROXY_KEY): 
     31            self.oldProxy = os.environ[utils.PROXY_KEY] 
     32            del os.environ[utils.PROXY_KEY] 
    3233         
    3334 
     
    218219            # delete the test file, in case it has been used in a test 
    219220            self.utils.deleteDoc(path) 
     221        if self.oldProxy: 
     222            os.environ[utils.PROXY_KEY] = self.oldProxy 
    220223 
    221224             
Note: See TracChangeset for help on using the changeset viewer.