def postProcess(self, _edObject=None):
     EDPluginExec.postProcess(self)
     self.DEBUG("EDPluginExecMeasureOffsetv1_0.postProcess")
     # Create some output data
     xsDataResult = XSDataResultMeasureOffset()
     xsDataResult.setOffset(self.tOffset)
     self.setDataOutput(xsDataResult)
 def postProcess(self, _edObject=None):
     EDPluginControl.postProcess(self)
     EDVerbose.DEBUG("EDPluginExecMeasureOffsetv2_0.postProcess")
     # Create some output data
     xsDataResult = XSDataResultMeasureOffset()
     xsDataResult.setOffset(self.tOffset)
     xsDataResult.setPanoFile(self.xsdPTO)
     self.setDataOutput(xsDataResult)
     self.xsdImages = []
    def testExecute(self):
        """
        """
        self.run()

        plugin = self.getPlugin()

        strExpectedOutput = self.readAndParseFile (self.getReferenceDataOutputFile())
        EDVerbose.DEBUG("Checking obtained result...")
        xsDataResultReference = XSDataResultMeasureOffset.parseString(strExpectedOutput)
        xsDataResultObtained = plugin.getDataOutput()
        EDAssert.strAlmostEqual(xsDataResultReference.marshal(), xsDataResultObtained.marshal(), _fRelError=0.0, _fAbsError=0.3, _strComment="XML out are the same")
Example #4
0
    def testExecute(self):
        """
        """
        self.run()

        plugin = self.getPlugin()

        strExpectedOutput = self.readAndParseFile (self.getReferenceDataOutputFile())
        EDVerbose.DEBUG("Checking obtained result...")
        xsDataResultReference = XSDataResultMeasureOffset.parseString(strExpectedOutput)
        xsDataResultObtained = plugin.getDataOutput()
        EDAssert.strAlmostEqual(xsDataResultReference.marshal(), xsDataResultObtained.marshal(), _fRelError=0.0, _fAbsError=5, _strComment="XML out are the same")
 def postProcess(self, _edObject=None):
     EDPluginExec.postProcess(self)
     self.DEBUG("EDPluginExecMeasureOffsetv1_0.postProcess")
     # Create some output data
     self.setDataOutput(XSDataResultMeasureOffset(offset=self.tOffset))