Example #1
0
 def returncmlstructure(self, SourceRefIDs):
     #this function return the geometry stored in self.geometry (cml format)
     #return returnXMLSource(SourceRefIDs, NodeName) + self.geometry
     return makeSourceRefs(SourceRefIDs) + self.geometry
 def returncmlstructure(self, SourceRefIDs):
     #this function return the geometry stored in self.geometry (cml format)
     #return returnXMLSource(SourceRefIDs, NodeName) + self.geometry 
     return makeSourceRefs(SourceRefIDs) + self.geometry 
Example #3
0
 def test_makeSourceRefs(self):
     refs = ["TestRef1", "TestRef2", "TestRef3"]
     self.assertEqual(generators.makeSourceRefs(refs),
                      '<SourceRef>BTestNode-TestRef1</SourceRef><SourceRef>BTestNode-TestRef2</SourceRef><SourceRef>BTestNode-TestRef3</SourceRef>')
Example #4
0
 def test_makeSourceRefs(self):
     refs = ["TestRef1", "TestRef2", "TestRef3"]
     self.assertEqual(
         generators.makeSourceRefs(refs),
         '<SourceRef>BTestNode-TestRef1</SourceRef><SourceRef>BTestNode-TestRef2</SourceRef><SourceRef>BTestNode-TestRef3</SourceRef>'
     )