def testCreateDNAFileDirectoryPath(self):
     pluginMXCuBE = self.createPlugin()
     pluginMXCuBE.configure()
     strResultCharacterisationFileName = "XSDataResultCharacterisation_reference.xml"
     strPathToReferenceFile = os.path.join(self.getPluginTestsDataHome(),
                                                       strResultCharacterisationFileName)
     strXML = self.readAndParseFile(strPathToReferenceFile)
     xsDataResultCharacterisation = XSDataResultCharacterisation.parseString(strXML)
     strDNAFileDirectoryPath = pluginMXCuBE.createDNAFileDirectoryPath(xsDataResultCharacterisation)
     strDNAFileDirectoryPathExpected = os.path.join(EDUtilsPath.getEdnaHome(), "tests", "data", "images", "testscale_1_dnafiles")
     EDAssert.equal(strDNAFileDirectoryPathExpected, strDNAFileDirectoryPath)
 def testCreateOutputFileDictionary(self):
     strPathToCCP4iResult = os.path.join(self.getPluginTestsDataHome(),
                                                     "XSDataResultCCP4i_reference.xml")
     strXML = self.readAndParseFile(strPathToCCP4iResult)
     EDFactoryPluginStatic.loadModule("XSDataCCP4iv1_1")
     from XSDataCCP4iv1_1 import XSDataResultCCP4i
     xsDataResultCCP4i = XSDataResultCCP4i.parseString(strXML)
     xsDataStringListOfOutputFiles = xsDataResultCCP4i.getListOfOutputFiles()
     pluginMXCuBE = self.createPlugin()
     pluginMXCuBE.configure()
     strResultCharacterisationFileName = "XSDataResultCharacterisation_reference.xml"
     strPathToReferenceFile = os.path.join(self.getPluginTestsDataHome(),
                                                       strResultCharacterisationFileName)
     strXML = self.readAndParseFile(strPathToReferenceFile)
     xsDataResultCharacterisation = XSDataResultCharacterisation.parseString(strXML)
     strDNAFileDirectoryPath = pluginMXCuBE.createDNAFileDirectoryPath(xsDataResultCharacterisation)
     pluginMXCuBE.createDNAFileDirectory(strDNAFileDirectoryPath)
     xsDataDictionary = pluginMXCuBE.createOutputFileDictionary(xsDataResultCharacterisation, strDNAFileDirectoryPath)
     EDAssert.equal(False, xsDataDictionary is None)
     shutil.rmtree(strDNAFileDirectoryPath)