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

    r5238 r5240  
    5656        pi = self.dao.getProviderInfo(PROVIDER_INFO_1) 
    5757        self.assertEquals(None, pi) 
     58 
     59 
     60    def testGetAllProviderInfo(self): 
     61        pi, fileName = self.dao.createProviderInfo(PROVIDER_INFO_1) 
     62        self.files.append(fileName) 
     63 
     64        pis = self.dao.getAllProviderInfo() 
     65        self.assertEquals(1, len(pis)) 
     66        self.assertEquals(PROVIDER_INFO_1, pis[0]) 
     67 
     68 
     69    def testInvalidGetAllProviderInfo(self): 
     70        pis = self.dao.getAllProviderInfo() 
     71        self.assertEquals([], pis) 
    5872 
    5973 
Note: See TracChangeset for help on using the changeset viewer.