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/testfeedclient.py

    r4942 r4978  
    1111import ndg.common.unittests.testconstants as tc 
    1212from ndg.common.unittests.testutils import testUtils as tu 
     13import ndg.common.src.lib.utilities as utils 
    1314 
    1415class testFeedClient(unittest.TestCase): 
     
    2829        self.utils = tu(self.confFile) 
    2930        self.feedClient = self.utils.ac.feedClient 
    30          
     31 
    3132        # NB, if running tests on a local db, feedparser, used by feedclient won't 
    3233        # pick up any 'no_proxy' settings - so 
    3334        self.oldProxy = None  
    34         if self.utils.host == 'localhost' and os.environ.has_key(tc.PROXY_KEY): 
    35             self.oldProxy = os.environ[tc.PROXY_KEY] 
    36             del os.environ[tc.PROXY_KEY] 
     35        if self.utils.host == 'localhost' and os.environ.has_key(utils.PROXY_KEY): 
     36            self.oldProxy = os.environ[utils.PROXY_KEY] 
     37            del os.environ[utils.PROXY_KEY] 
    3738 
    3839    def testCreateAtomFeed(self): 
     
    136137            # delete the test file, in case it has been used in a test 
    137138            self.utils.deleteDoc(path) 
    138              
     139 
    139140        if self.oldProxy: 
    140             os.environ[tc.PROXY_KEY] = self.oldProxy 
     141            os.environ[utils.PROXY_KEY] = self.oldProxy 
    141142 
    142143if __name__ == '__main__': 
Note: See TracChangeset for help on using the changeset viewer.