本文整理汇总了Python中fit.Parse.Parse.leader方法的典型用法代码示例。如果您正苦于以下问题:Python Parse.leader方法的具体用法?Python Parse.leader怎么用?Python Parse.leader使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类fit.Parse.Parse
的用法示例。
在下文中一共展示了Parse.leader方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: copyParse
# 需要导入模块: from fit.Parse import Parse [as 别名]
# 或者: from fit.Parse.Parse import leader [as 别名]
def copyParse(tables):
if tables is None:
return None
parse = Parse(tag="", body=tables.body,
parts=copyParse(tables.parts), more=copyParse(tables.more))
parse.tag = tables.tag
parse.end = tables.end
parse.leader = tables.leader
parse.trailer = tables.trailer
return parse
示例2: handleParseException
# 需要导入模块: from fit.Parse import Parse [as 别名]
# 或者: from fit.Parse.Parse import leader [as 别名]
def handleParseException(self, e, docName):
excClass, info, tb = sys.exc_info()
traceList = traceback.format_exception(excClass, info, tb)
trace = "".join(traceList)
conMsg.tmsg("Parse exception occurred!: " + trace)
html = "<table><tr><td>Unable to parse input. Input ignored</td></tr></table>"
tables = Parse(html)
tables.leader = docName + "\n" + tables.leader
self.fixture.exception(tables, e)
self.fixture.listener.createPage(tables)
self.counts += self.fixture.counts
try:
self.fixture.listener.tableFinished(tables)
self.fixture.listener.tablesFinished(self.counts)
except:
pass
self.fixture.listener.writeCounts(
self.fixture.counts, self.options.verbose)
FG.appConfigInterface("afterTestExecution",
self.fixture.counts,
self.fixture.summary)
return
示例3: CellOutput
# 需要导入模块: from fit.Parse import Parse [as 别名]
# 或者: from fit.Parse.Parse import leader [as 别名]
def CellOutput(self):
cell = Parse(tag="td")
cell.leader = ""
cell.body = Fixture.escape(self, self._unescape(self.Text))
return self._GenerateOutput(cell)