Пример #1
0
 def postProcess(self, _edObject=None):
     EDPluginExec.postProcess(self)
     EDVerbose.DEBUG("EDPluginExecMatrixReadv1_0.postProcess")
     # Create some output data
     xsDataResult = XSDataResultReadMatrix()
     xsdMatOut = EDUtilsArray.arrayToXSData(self.matOut, _bIncludeMd5sum=False)
     xsDataResult.setOutputMatrix(xsdMatOut)
     self.setDataOutput(xsDataResult)
Пример #2
0
 def postProcess(self, _edObject=None):
     EDPluginExec.postProcess(self)
     EDVerbose.DEBUG("EDPluginExecMatrixReadv1_0.postProcess")
     # Create some output data
     xsDataResult = XSDataResultReadMatrix()
     xsdMatOut = EDUtilsArray.arrayToXSData(self.matOut,
                                            _bIncludeMd5sum=False)
     xsDataResult.setOutputMatrix(xsdMatOut)
     self.setDataOutput(xsDataResult)
    def testExecute(self):
        """
        """
        self.run()
        plugin = self.getPlugin()
################################################################################
# Compare XSDataResults
################################################################################
        strExpectedOutput = self.readAndParseFile (self.getReferenceDataOutputFile())
        EDVerbose.DEBUG("Checking obtained result...")
        xsDataResultReference = XSDataResultReadMatrix.parseString(strExpectedOutput)
        xsDataResultObtained = plugin.getDataOutput()
        EDAssert.strAlmostEqual(xsDataResultReference.marshal(), xsDataResultObtained.marshal(), _fStrSimilar=0.99, _strComment="XSDataResult output are the same")
 def testExecute(self):
     """
     """
     self.run()
     plugin = self.getPlugin()
     ################################################################################
     # Compare XSDataResults
     ################################################################################
     strExpectedOutput = self.readAndParseFile(
         self.getReferenceDataOutputFile())
     EDVerbose.DEBUG("Checking obtained result...")
     xsDataResultReference = XSDataResultReadMatrix.parseString(
         strExpectedOutput)
     xsDataResultObtained = plugin.getDataOutput()
     EDAssert.strAlmostEqual(xsDataResultReference.marshal(),
                             xsDataResultObtained.marshal(),
                             _fStrSimilar=0.99,
                             _strComment="XSDataResult output are the same")