def testGetXSDataResultBest4(self): edPluginBest = self.createPlugin() xsDataInputBest = XSDataInputBest() edPluginBest.dataInput = xsDataInputBest # Test 1 xsDataResultBest = edPluginBest.getXSDataResultBest(os.path.join(self.strDataPath, "unit_test_4_best.log")) xsDataResultBestReference = XSDataResultBest.parseFile(os.path.join(self.strDataPath, "XSDataResultBest_unit_test_4.xml")) print xsDataResultBest.marshal() EDAssert.equal(xsDataResultBestReference.collectionPlan[0].marshal(), xsDataResultBest.collectionPlan[0].marshal(), "Collection plan")
def testGetXSDataResultBest4(self): edPluginBest = self.createPlugin() xsDataInputBest = XSDataInputBest() edPluginBest.dataInput = xsDataInputBest # Test 1 xsDataResultBest = edPluginBest.getXSDataResultBest( os.path.join(self.strDataPath, "unit_test_4_best.log")) xsDataResultBestReference = XSDataResultBest.parseFile( os.path.join(self.strDataPath, "XSDataResultBest_unit_test_4.xml")) print xsDataResultBest.marshal() EDAssert.equal(xsDataResultBestReference.collectionPlan[0].marshal(), xsDataResultBest.collectionPlan[0].marshal(), "Collection plan")
def testGetXSDataResultBest2(self): edPluginBest = self.createPlugin() xsDataInputBest = XSDataInputBest() edPluginBest.dataInput = xsDataInputBest # Test 1 xsDataResultBest = edPluginBest.getXSDataResultBest(os.path.join(self.strDataPath, "unit_test_2_best.log")) xsDataResultBestReference = XSDataResultBest.parseFile(os.path.join(self.strDataPath, "XSDataResultBest_unit_test_2.xml")) # print xsDataResultBest.marshal() for index in range(len(xsDataResultBestReference.collectionPlan)): try: EDAssert.equal(xsDataResultBestReference.collectionPlan[index].marshal(), xsDataResultBest.collectionPlan[index].marshal(), "Collection plan {0}".format(index)) except: pass
def testGetXSDataResultBest2(self): edPluginBest = self.createPlugin() xsDataInputBest = XSDataInputBest() edPluginBest.dataInput = xsDataInputBest # Test 1 xsDataResultBest = edPluginBest.getXSDataResultBest( os.path.join(self.strDataPath, "unit_test_2_best.log")) xsDataResultBestReference = XSDataResultBest.parseFile( os.path.join(self.strDataPath, "XSDataResultBest_unit_test_2.xml")) # print xsDataResultBest.marshal() for index in range(len(xsDataResultBestReference.collectionPlan)): try: EDAssert.equal( xsDataResultBestReference.collectionPlan[index].marshal(), xsDataResultBest.collectionPlan[index].marshal(), "Collection plan {0}".format(index)) except: pass