Home | Trees | Index | Help |
|
---|
Package twisted :: Package trial :: Module unittest :: Class _Assertions |
|
object
--+ |object
--+ | | |TestCase
--+ | _Assertions
TestCase
Method Summary | |
---|---|
fails the test if condition evaluates to True | |
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. | |
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. | |
asserts that first - second >
tolerance | |
fail the test if first and second are not
equal | |
fail the test if first and second are not
equal | |
assert that deferred will errback a failure of type in expectedFailures this is analagous to an async assertRaises | |
fails the test if condition evaluates to False | |
fail the test if first is not second . | |
fail the test if containee is not found in
container | |
fails the test if condition evaluates to False | |
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. | |
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. | |
fail the test if first == second | |
fail the test if first == second | |
fail the test if first is second . | |
fail the test if containee is found in
container | |
assertNotSubstring(self,
substring,
astring,
msg)
| |
fails the test unless calling the function f with the
given args and kwargs does not raise
exception . | |
assertSubstring(self,
substring,
astring,
msg)
| |
fails the test if condition evaluates to True | |
absolutely fails the test, do not pass go, do not collect $200 | |
fails the test if condition evaluates to False | |
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. | |
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. | |
fail the test if first == second | |
fail the test if first == second | |
fail the test if first is second . | |
fail the test if containee is found in
container | |
failIfSubstring(self,
substring,
astring,
msg)
| |
fails the test if condition evaluates to True | |
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. | |
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. | |
asserts that first - second >
tolerance | |
fail the test if first and second are not
equal | |
fail the test if first and second are not
equal | |
assert that deferred will errback a failure of type in expectedFailures this is analagous to an async assertRaises | |
fails the test if condition evaluates to False | |
fail the test if first is not second . | |
fail the test if containee is not found in
container | |
fails the test unless calling the function f with the
given args and kwargs does not raise
exception . | |
failUnlessSubstring(self,
substring,
astring,
msg)
| |
fails the test if condition evaluates to True | |
Inherited from TestCase | |
Create an instance of the class that will use the named test method when executed. | |
| |
| |
| |
| |
Run the test without collecting errors in a TestResult | |
| |
| |
| |
Hook method for setting up the test fixture before exercising it. | |
Returns a one-line description of the test, or None if no description has been provided. | |
Hook method for deconstructing the test fixture after testing it. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value |
Class Variable Summary | |
---|---|
Implements |
__implemented__ = <implementedBy twisted.trial.unittest....
|
ClassProvides |
__provides__ = <zope.interface.declarations.ClassProvide...
|
Inherited from TestCase | |
ClassProvides |
__providedBy__ = <zope.interface.declarations.ClassProvi...
|
Method Details |
---|
assert_(self, condition, msg=None)fails the test ifcondition evaluates to True
|
assertAlmostEqual(self, 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.
|
assertAlmostEquals(self, 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.
|
assertApproximates(self, first, second, tolerance, msg=None)asserts thatfirst - second >
tolerance
|
assertEqual(self, first, second, msg=None)fail the test iffirst and second are not
equal
|
assertEquals(self, first, second, msg=None)fail the test iffirst and second are not
equal
|
assertFailure(self, deferred, *expectedFailures)assert that deferred will errback a failure of type in expectedFailures this is analagous to an async assertRaises |
assertFalse(self, condition, msg=None)fails the test ifcondition evaluates to False
|
assertIdentical(self, first, second, msg=None)fail the test iffirst is not second . This
is an obect-identity-equality test, not an object equality (i.e.
__eq__ ) test
|
assertIn(self, containee, container, msg=None)fail the test ifcontainee is not found in
container
|
assertNot(self, condition, msg=None)fails the test ifcondition evaluates to False
|
assertNotAlmostEqual(self, 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.
|
assertNotAlmostEquals(self, 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.
|
assertNotEqual(self, first, second, msg=None)fail the test iffirst == second
|
assertNotEquals(self, first, second, msg=None)fail the test iffirst == second
|
assertNotIdentical(self, first, second, msg=None)fail the test iffirst is second . This is
an obect-identity-equality test, not an object equality (i.e.
__eq__ ) test
|
assertNotIn(self, containee, container, msg=None)fail the test ifcontainee is found in
container
|
assertRaises(self, exception, f, *args, **kwargs)fails the test unless calling the functionf with the
given args and kwargs does not raise
exception . The failure will report the traceback and call
stack of the unexpected exception.
|
assertTrue(self, condition, msg=None)fails the test ifcondition evaluates to True
|
fail(self, msg=None)absolutely fails the test, do not pass go, do not collect $200
|
failIf(self, condition, msg=None)fails the test ifcondition evaluates to False
|
failIfAlmostEqual(self, 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.
|
failIfAlmostEquals(self, 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.
|
failIfEqual(self, first, second, msg=None)fail the test iffirst == second
|
failIfEquals(self, first, second, msg=None)fail the test iffirst == second
|
failIfIdentical(self, first, second, msg=None)fail the test iffirst is second . This is
an obect-identity-equality test, not an object equality (i.e.
__eq__ ) test
|
failIfIn(self, containee, container, msg=None)fail the test ifcontainee is found in
container
|
failUnless(self, condition, msg=None)fails the test ifcondition evaluates to True
|
failUnlessAlmostEqual(self, 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.
|
failUnlessAlmostEquals(self, 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.
|
failUnlessApproximates(self, first, second, tolerance, msg=None)asserts thatfirst - second >
tolerance
|
failUnlessEqual(self, first, second, msg=None)fail the test iffirst and second are not
equal
|
failUnlessEquals(self, first, second, msg=None)fail the test iffirst and second are not
equal
|
failUnlessFailure(self, deferred, *expectedFailures)assert that deferred will errback a failure of type in expectedFailures this is analagous to an async assertRaises |
failUnlessFalse(self, condition, msg=None)fails the test ifcondition evaluates to False
|
failUnlessIdentical(self, first, second, msg=None)fail the test iffirst is not second . This
is an obect-identity-equality test, not an object equality (i.e.
__eq__ ) test
|
failUnlessIn(self, containee, container, msg=None)fail the test ifcontainee is not found in
container
|
failUnlessRaises(self, exception, f, *args, **kwargs)fails the test unless calling the functionf with the
given args and kwargs does not raise
exception . The failure will report the traceback and call
stack of the unexpected exception.
|
failUnlessTrue(self, condition, msg=None)fails the test ifcondition evaluates to True
|
Class Variable Details |
---|
__implemented__
|
__provides__
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sun Oct 1 10:49:47 2006 | http://epydoc.sf.net |