Ignore:
Timestamp:
06/05/09 12:13:12 (10 years ago)
Author:
cbyrom
Message:

Extend OAI Info editor documentation and help pages + improve the
setup config + extend test suite and fix problem with setting
email addresses in providerinfo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI01-discovery/trunk/OAIInfoEditor/oai_info_editor/tests/lib/testharvester.py

    r5253 r5255  
    1919 
    2020        setUpDir(VALID_HARVEST_DIR) 
    21         self.h = Harvester() 
     21        self.h = Harvester(VALID_MAIL_SERVER) 
    2222         
    2323    def testBasicConstructorWithKeyword(self): 
    24         h = Harvester(outDir = VALID_HARVEST_DIR) 
     24        h = Harvester(VALID_MAIL_SERVER, outDir = VALID_HARVEST_DIR) 
    2525        self.assertEquals(VALID_HARVEST_DIR, h.outDir) 
     26        self.assertEquals(VALID_MAIL_SERVER, h.mailServer) 
    2627         
    2728    def testBasicConstructor(self): 
    2829        self.assertEquals(None, self.h.outDir) 
     30        self.assertEquals(VALID_MAIL_SERVER, self.h.mailServer) 
    2931 
    3032    def testInvalidInputHarvestRepository(self): 
     
    3638        self.assertFalse(status) 
    3739        self.assertEquals('Error: The request for data resulted in an invalid response from the provider. Error: Server returned HTTP response code: 400 for URL: http://rep2.ac.uk?verb=Identify', out) 
    38         self.assertEquals('tmp/rep2-ac-uk-DIF', dir) 
     40        self.assertEquals('%s/rep2-ac-uk-DIF' %VALID_HARVEST_DIR, dir) 
    3941 
    4042    def testHarvestRepository(self): 
     
    4345        self.assertTrue(status) 
    4446        self.assertTrue(out.find('Harvest of http://badc.nerc.ac.uk/badc_oai/provider is complete') > -1) 
    45         self.assertEquals('tmp/badc-nerc-ac-uk-dif', dir) 
     47        self.assertEquals('%s/badc-nerc-ac-uk-dif' %VALID_HARVEST_DIR, dir) 
    4648     
    4749    def tearDown(self): 
Note: See TracChangeset for help on using the changeset viewer.