本文整理汇总了Python中form.Form.checkFormStrict方法的典型用法代码示例。如果您正苦于以下问题:Python Form.checkFormStrict方法的具体用法?Python Form.checkFormStrict怎么用?Python Form.checkFormStrict使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类form.Form
的用法示例。
在下文中一共展示了Form.checkFormStrict方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: checkFormStrict
# 需要导入模块: from form import Form [as 别名]
# 或者: from form.Form import checkFormStrict [as 别名]
def checkFormStrict(self, formTemplate, formName=None):
"""
Method to check that the visible element in the template
Are all displayed and that they are the only ones displayed
NOTE this is an *experimental method* it tries to check that the template
matches what is displayed. It is not guaranteed to manage all possible form elements.
If you have a element that you would like to be added to this method raise a ticket on Trac
"""
self.startCoverage("checkFormStrict")
error = []
f = Form(self)
error = f.checkFormStrict(formTemplate, formName)
self.endCoverage()
return error