本文整理汇总了Python中XSDataMXv1.XSDataInputStrategy.parseFile方法的典型用法代码示例。如果您正苦于以下问题:Python XSDataInputStrategy.parseFile方法的具体用法?Python XSDataInputStrategy.parseFile怎么用?Python XSDataInputStrategy.parseFile使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XSDataMXv1.XSDataInputStrategy
的用法示例。
在下文中一共展示了XSDataInputStrategy.parseFile方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: testGenerateXSDataInputBestv1_2
# 需要导入模块: from XSDataMXv1 import XSDataInputStrategy [as 别名]
# 或者: from XSDataMXv1.XSDataInputStrategy import parseFile [as 别名]
def testGenerateXSDataInputBestv1_2(self, _strFileNameXSDataInputStrategy_reference, _strFileNameXSDataInputBest_reference):
"""
This method is testing the generation of the XSDataInputBest object given a XSDataIndexingStrategy object.
"""
strReferenceInputFile = os.path.join(self.strDataPath, _strFileNameXSDataInputStrategy_reference)
strPath = os.path.join(self.strDataPath, strReferenceInputFile)
from XSDataMXv1 import XSDataInputStrategy
xsDataInputStrategy = XSDataInputStrategy.parseFile(strPath)
from EDHandlerXSDataBestv1_2 import EDHandlerXSDataBestv1_2
edHandlerXSDataBestv1_2 = EDHandlerXSDataBestv1_2()
xsDataInputBestv1_2 = edHandlerXSDataBestv1_2.getXSDataInputBest(xsDataInputStrategy)
strReferencePath = os.path.join(self.strDataPath, _strFileNameXSDataInputBest_reference)
strXMLInputBestReference = EDUtilsTest.readAndParseFile(strReferencePath)
EDFactoryPluginStatic.loadModule("XSDataBestv1_2")
from XSDataBestv1_2 import XSDataInputBest
xsDataInputBestReference = XSDataInputBest.parseString(strXMLInputBestReference)
EDAssert.equal(xsDataInputBestReference.marshal(), xsDataInputBestv1_2.marshal())