Ignore:
Timestamp:
18/05/09 17:22:02 (11 years ago)
Author:
cbyrom
Message:

Extend the discovery ws client to allow access to the getListNames and
getList methods + add tests to these + extend search method to include
the orderBy and orderDirection parameters. NB, there is a bug in the
getListNames code which means that the getListNameRequest object
cannot be created, so the method cannot be invoked - presumably this
is an error due to the wsdl2python generation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ndgCommon/trunk/ndg/common/unittests/clients/ws/discovery/testdiscoveryserviceclient.py

    r5006 r5304  
    33from ndg.common.src.models.ndgObject import ndgObject as no 
    44from ndg.common.src.clients.ws.discovery.discoveryserviceclient import DiscoveryServiceClient 
     5from ZSI import FaultException 
    56 
    67class TestCase(unittest.TestCase): 
     
    1415        ''' 
    1516        self.client = DiscoveryServiceClient() 
     17 
     18    def OFFtestGetListNames(self): 
     19        # this method doesn't work owing to a problem with the generated code... 
     20        names = self.client.getListNames() 
     21 
     22    def testValidGetList(self): 
     23        names = self.client.getList('orderByFieldList') 
     24        self.assertTrue(len(names) > 0) 
     25 
     26    def testInvalidGetList(self): 
     27        self.assertRaises(FaultException, self.client.getList, 'orderByFieldListxx') 
    1628     
    1729    def testSearch(self): 
Note: See TracChangeset for help on using the changeset viewer.