def testGenerateXSDataMOSFLMInputIndexing(self): strFilename = "XSDataIndexingInput_reference.xml" strPath = os.path.join(self.m_strDataPath, strFilename) strXMLIndexingInput = EDUtilsTest.readAndParseFile(strPath) from XSDataMXv1 import XSDataIndexingInput xsDataIndexingInput = XSDataIndexingInput.parseString(strXMLIndexingInput) from EDHandlerXSDataMOSFLMv10 import EDHandlerXSDataMOSFLMv10 xsDataMOSFLMInputIndexing = EDHandlerXSDataMOSFLMv10.generateXSDataMOSFLMInputIndexing(xsDataIndexingInput) xsDataMOSFLMInputIndexing.outputFile("XSDataMOSFLMInputIndexing_reference.xml") strReferenceFilename = "XSDataMOSFLMInputIndexing_reference.xml" strReferencePath = os.path.join(self.m_strDataPath, strReferenceFilename) strXMLMOSFLMInputIndexingReference = EDUtilsTest.readAndParseFile(strReferencePath) EDFactoryPluginStatic.loadModule("XSDataMOSFLMv10") from XSDataMOSFLMv10 import XSDataMOSFLMInputIndexing xsDataMOSFLMInputIndexingReference = XSDataMOSFLMInputIndexing.parseString(strXMLMOSFLMInputIndexingReference) EDAssert.equal(xsDataMOSFLMInputIndexingReference.marshal(), xsDataMOSFLMInputIndexing.marshal())
def testGenerateExecutiveSummary(self): """ """ pluginIndexing = self.createPlugin() pluginIndexing.setScriptExecutable("cat") pluginIndexing.configure() from XSDataMOSFLMv10 import XSDataMOSFLMInputIndexing from XSDataMOSFLMv10 import XSDataMOSFLMOutputIndexing strMOSFLMInputIndexingXML = self.readAndParseFile(self.strReferenceDataInputFile) strMOSFLMOutputIndexingXML = self.readAndParseFile(self.strReferenceDataOutputFile) xsDataMOSFLMInputIndexing = XSDataMOSFLMInputIndexing.parseString(strMOSFLMInputIndexingXML) xsDataMOSFLMOutputIndexing = XSDataMOSFLMOutputIndexing.parseString(strMOSFLMOutputIndexingXML) pluginIndexing.setDataInput(xsDataMOSFLMInputIndexing) pluginIndexing.setDataOutput(xsDataMOSFLMOutputIndexing) pluginIndexing.generateExecutiveSummary(pluginIndexing) pluginIndexing.verboseScreenExecutiveSummary() self.cleanUp(pluginIndexing)
def testGenerateXSDataMOSFLMInputIndexing(self): strFilename = "XSDataIndexingInput_reference.xml" strPath = os.path.join(self.m_strDataPath, strFilename) strXMLIndexingInput = EDUtilsTest.readAndParseFile(strPath) from XSDataMXv1 import XSDataIndexingInput xsDataIndexingInput = XSDataIndexingInput.parseString( strXMLIndexingInput) from EDHandlerXSDataMOSFLMv10 import EDHandlerXSDataMOSFLMv10 xsDataMOSFLMInputIndexing = EDHandlerXSDataMOSFLMv10.generateXSDataMOSFLMInputIndexing( xsDataIndexingInput) xsDataMOSFLMInputIndexing.exportToFile( "XSDataMOSFLMInputIndexing_reference.xml") strReferenceFilename = "XSDataMOSFLMInputIndexing_reference.xml" strReferencePath = os.path.join(self.m_strDataPath, strReferenceFilename) strXMLMOSFLMInputIndexingReference = EDUtilsTest.readAndParseFile( strReferencePath) EDFactoryPluginStatic.loadModule("XSDataMOSFLMv10") from XSDataMOSFLMv10 import XSDataMOSFLMInputIndexing xsDataMOSFLMInputIndexingReference = XSDataMOSFLMInputIndexing.parseString( strXMLMOSFLMInputIndexingReference) EDAssert.equal(xsDataMOSFLMInputIndexingReference.marshal(), xsDataMOSFLMInputIndexing.marshal())