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 test_makeSourceRefs(self): refs = ["TestRef1", "TestRef2", "TestRef3"] self.assertEqual(generators.makeSourceRefs(refs), '<SourceRef>BTestNode-TestRef1</SourceRef><SourceRef>BTestNode-TestRef2</SourceRef><SourceRef>BTestNode-TestRef3</SourceRef>')
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>' )