Exemplo n.º 1
0
 def checkWSDLCollection(self, tag_name, component, key='name'):
     if self.wsdl is None:
         return
     definition = self.wsdl.document.documentElement
     version = DOM.WSDLUriToVersion(definition.namespaceURI)
     nspname = DOM.GetWSDLUri(version)
     for node in DOM.getElements(definition, tag_name, nspname):
         name = DOM.getAttr(node, key)
         comp = component[name]
         self.failUnlessEqual(eval('comp.%s' %key), name)
Exemplo n.º 2
0
 def checkWSDLCollection(self, tag_name, component, key='name'):
     if self.wsdl is None:
         return
     definition = self.wsdl.document.documentElement
     version = DOM.WSDLUriToVersion(definition.namespaceURI)
     nspname = DOM.GetWSDLUri(version)
     for node in DOM.getElements(definition, tag_name, nspname):
         name = DOM.getAttr(node, key)
         comp = component[name]
         self.assertEqual(eval('comp.%s' % key), name)
Exemplo n.º 3
0
 def checkXSDCollection(self, tag_name, component, node, key='name'):
     for cnode in DOM.getElements(node, tag_name):
         name = DOM.getAttr(cnode, key)
         component[name] 
Exemplo n.º 4
0
 def checkXSDCollection(self, tag_name, component, node, key='name'):
     for cnode in DOM.getElements(node, tag_name):
         name = DOM.getAttr(cnode, key)
         component[name]