Ignore:
Timestamp:
30/04/09 11:19:53 (11 years ago)
Author:
cbyrom
Message:

Add data access methods to retrieve all provider information and add
tests to exercise these new methods.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI01-discovery/trunk/OAIInfoEditor/oai_info_editor/tests/dal/testeditorfileclient.py

    r5238 r5240  
    141141 
    142142 
     143    def testGetAllProviderInfo(self): 
     144        pi, fileName = self.client.createProviderInfo(PROVIDER_INFO_1) 
     145        self.files.append(fileName) 
     146 
     147        pis = self.client.getAllProviderInfo() 
     148        self.assertEquals(1, len(pis)) 
     149        self.assertEquals(PROVIDER_INFO_1, pis[0]) 
     150 
     151 
     152    def testInvalidGetAllProviderInfo(self): 
     153        pis = self.client.getAllProviderInfo() 
     154        self.assertEquals([], pis) 
     155 
     156 
    143157    def testGetRepositoryInfo(self): 
    144158        pi, fileName = self.client.createProviderInfo(PROVIDER_INFO_2) 
Note: See TracChangeset for help on using the changeset viewer.