Functional test case.
There are no implemented interfaces.
failureException
(type: classobj
)
<class exceptions.AssertionError at 0x403a18cc>
layer
(type: instance
)
<zope.app.testing.functional.ZCMLLayer instance at 0x4172266c>
abort()
assertAlmostEqual(first, second, places=7, msg=None)
Fail if the two objects are unequal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same as significant digits (measured from the most signficant digit).
assertAlmostEquals(first, second, places=7, msg=None)
Fail if the two objects are unequal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same as significant digits (measured from the most signficant digit).
assertEqual(first, second, msg=None)
Fail if the two objects are unequal as determined by the ==
operator.
assertEquals(first, second, msg=None)
Fail if the two objects are unequal as determined by the ==
operator.
assertFalse(expr, msg=None)
Fail the test if the expression is true.
assertNotAlmostEqual(first, second, places=7, msg=None)
Fail if the two objects are equal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same as significant digits (measured from the most signficant digit).
assertNotAlmostEquals(first, second, places=7, msg=None)
Fail if the two objects are equal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same as significant digits (measured from the most signficant digit).
assertNotEqual(first, second, msg=None)
Fail if the two objects are equal as determined by the ==
operator.
assertNotEquals(first, second, msg=None)
Fail if the two objects are equal as determined by the ==
operator.
assertRaises(excClass, callableObj, *args, **kwargs)
Fail unless an exception of class excClass is thrown by callableObj when invoked with arguments args and keyword arguments kwargs. If a different type of exception is thrown, it will not be caught, and the test case will be deemed to have suffered an error, exactly as for an unexpected exception.
assertTrue(expr, msg=None)
Fail the test unless the expression is true.
assert_(expr, msg=None)
Fail the test unless the expression is true.
commit()
countTestCases()
debug()
Run the test without collecting errors in a TestResult
defaultTestResult()
fail(msg=None)
Fail immediately, with the given message.
failIf(expr, msg=None)
Fail the test if the expression is true.
failIfAlmostEqual(first, second, places=7, msg=None)
Fail if the two objects are equal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same as significant digits (measured from the most signficant digit).
failIfEqual(first, second, msg=None)
Fail if the two objects are equal as determined by the ==
operator.
failUnless(expr, msg=None)
Fail the test unless the expression is true.
failUnlessAlmostEqual(first, second, places=7, msg=None)
Fail if the two objects are unequal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero.
Note that decimal places (from zero) are usually not the same as significant digits (measured from the most signficant digit).
failUnlessEqual(first, second, msg=None)
Fail if the two objects are unequal as determined by the ==
operator.
failUnlessRaises(excClass, callableObj, *args, **kwargs)
Fail unless an exception of class excClass is thrown by callableObj when invoked with arguments args and keyword arguments kwargs. If a different type of exception is thrown, it will not be caught, and the test case will be deemed to have suffered an error, exactly as for an unexpected exception.
getRootFolder()
Returns the Zope root folder.
id()
run(result=None)
setUp()
Prepares for a functional test case.
shortDescription()
Returns a one-line description of the test, or None if no description has been provided.
The default implementation of this method returns the first line of the specified test method's docstring.
tearDown()
Cleans up after a functional test case.