예제 #1
0
 def testGetPlatformInfo(self):
     self.a.addBehaviour(GetPIBehav(), None)
     while self.a.pi == None: time.sleep(2)
     #print self.a.pi
     from coTestCase import isEqualElement,isEqualXML
     #self.assertEqual( str(self.a.pi),  self.rdf) # 'Incorrect Platform Info'        
     assert isEqualXML(str(self.a.pi.asRDFXML()), self.rdf)
예제 #2
0
 def testGetPlatformInfo(self):
     self.a.addBehaviour(GetPIBehav(), None)
     counter = 0
     while self.a.pi is None and counter < 10:
         time.sleep(1)
         counter += 1
     self.assertNotEqual(self.a.pi, None)
     from coTestCase import isEqualXML
     #self.assertEqual( str(self.a.pi),  self.rdf) # 'Incorrect Platform Info'
     assert isEqualXML(str(self.a.pi.asRDFXML()), self.rdf)
예제 #3
0
 def testGetPlatformInfo(self):
     self.a.addBehaviour(GetPIBehav(), None)
     counter = 0
     while self.a.pi is None and counter < 10:
         time.sleep(1)
         counter += 1
     self.assertNotEqual(self.a.pi, None)
     from coTestCase import isEqualXML
     #self.assertEqual( str(self.a.pi),  self.rdf) # 'Incorrect Platform Info'
     assert isEqualXML(str(self.a.pi.asRDFXML()), self.rdf)