Ignore:
Timestamp:
18/02/09 11:33:18 (11 years ago)
Author:
cbyrom
Message:

Move generic 'httpify' method to utilities + adjust utilities method
to retrive default proxy to cope with standard formatting + set this
up on each call to urlopen - since different urls may use different
proxies + tidyup and extend test suite.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ndgCommon/trunk/ndg/common/unittests/models/testdif.py

    r4944 r4991  
    22from ndg.common.src.models.DIF import DIF 
    33from ndg.common.src.models.ndgObject import ndgObject 
    4 from ndg.common.src.dal.ndgRetrieve import ndgRetrieve 
     4from ndg.common.src.dal.ndgRetrieve import NDGRetrieve 
    55from ndg.common.src.models.myconfig import myConfig 
    66import ndg.common.unittests.testconstants as tc 
     
    4545        testURI='neodc.nerc.ac.uk__DIF__NEODC_NEXTMAP' 
    4646        uri=ndgObject(testURI,config=self.config) 
    47         status,xml=ndgRetrieve(uri,self.config) 
     47        ndgRetrieve = NDGRetrieve(self.config) 
     48        status,xml = ndgRetrieve.retrieveDoc(uri) 
    4849        self.assertEqual(status,1) 
    4950        xml = ET.fromstring(xml) 
Note: See TracChangeset for help on using the changeset viewer.