示例#1
0
 def testComplexComponentValues(self):
     ''' Test getting the value of a component for complex locations '''
     complex1 = Location('TC',"R-H-K8-S")
     self.assertEquals(complex1.get_comp_value('kilroy'),'8')
示例#2
0
 def testSimpleComponentValues(self):
     ''' Test getting the value of a component for simple locations '''
     simple1 = Location('TS','a.b.c')
     self.assertEquals(simple1.get_comp_value('grandchild'),'c')
     self.assertEquals(simple1.get_comp_value('child'),'b')
     self.assertEquals(simple1.get_comp_value('parent'),'a')