| Home | Trees | Index | Help |
|
|---|
| Package twisted :: Package trial :: Module unittest :: Class TestCase |
|
object --+
|
object --+ |
| |
TestCase --+
|
_Assertions --+
|
TestCase
AttributeType_KnownValues,
BERBaseEquality,
BERBooleanKnownValues,
BEREnumeratedKnownValues,
BEREnumeratedSanityCheck,
BERIntegerKnownValues,
BERIntegerSanityCheck,
BerLengths,
BERNullKnownValues,
BEROctetStringKnownValues,
BEROctetStringSanityCheck,
BERSequenceKnownValues,
Bind,
ConnectionLost,
Dir2LDIF,
DistinguishedName_Comparison,
DistinguishedName_Init,
FromLDIF,
IdentitySearch,
KnownValues,
LDAPAutoFill_Posix,
LDAPAutoFill_sambaAccount,
LDAPAutoFill_sambaSamAccount,
LDAPAutoFill_Simple,
LDAPDistinguishedName_contains,
LDAPDistinguishedName_DomainName,
LDAPDistinguishedName_Malformed,
LDAPDistinguishedName_Prettify,
LDAPServerTest,
LDAPSyntaxAddChild,
LDAPSyntaxAttributes,
LDAPSyntaxAttributesModificationOnWire,
LDAPSyntaxBasics,
LDAPSyntaxContainingNamingContext,
LDAPSyntaxDelete,
LDAPSyntaxDNs,
LDAPSyntaxFetch,
LDAPSyntaxLDIF,
LDAPSyntaxMove,
LDAPSyntaxPasswords,
LDAPSyntaxRDNHandling,
LDAPSyntaxSearch,
LDIF2Dir,
NetmaskToNumbits,
ObjectClass_KnownValues,
OnWire,
Proxy,
PtrSoaName,
RelativeDistinguishedName_Init,
RFC2254Examples,
RFC2849_Examples,
ServiceBindingProxy,
Substrings,
TestAddOpLDIF,
TestAuthentication,
TestCallableOverride,
TestCaseWithKnownValues,
TestComparison,
TestComparison,
TestConfig,
TestCSS,
TestDelete,
TestDeleteOpLDIF,
TestDiff,
TestDiffEntry,
TestEntryMatch,
TestEquality,
TestInMemoryDatabase,
TestInvalid,
TestLDIFDeltaParsing,
TestLDIFParsing,
TestLMHash,
TestMaybeSubstring,
TestModificationComparison,
TestModificationOpLDIF,
TestModifications,
TestNTHash,
TestOperationLDIF,
TestOperations,
TestSchema,
TestSetOperations,
TestValid,
TestWhitespace,
Tree| Method Summary | |
|---|---|
Create an instance of the class that will use the named test method when executed. | |
__call__(self,
*args,
**kwargs)
| |
deferSetUp(self,
ignored,
result)
| |
deferSetUpClass(self,
result)
| |
deferTearDown(self,
ignored,
result)
| |
deferTearDownClass(self,
ignored,
result)
| |
deferTestMethod(self,
ignored,
result)
| |
getSkip(self)
| |
getSuppress(self)
| |
getTimeout(self)
| |
getTodo(self)
| |
will return a unique name that may be used as either a temporary directory or filename | |
run(self,
result)
| |
Returns a one-line description of the test, or None if no description has been provided. | |
Call visitor.visitCase(self). | |
_cbDeferTestMethod(self,
ignored,
result)
| |
_classCleanUp(self,
result)
| |
_cleanUp(self,
result)
| |
_ebDeferSetUp(self,
failure,
result)
| |
_ebDeferSetUpClass(self,
error,
result)
| |
_ebDeferTearDown(self,
failure,
result)
| |
_ebDeferTestMethod(self,
f,
result)
| |
_ebTearDownClass(self,
error,
result)
| |
_getReason(self,
f)
| |
_initInstances(cls)
(Class method) | |
_isFirst(self)
| |
_isLast(self)
| |
Lots of tests assume that test methods all run in the same instance of TestCase. | |
_run(self,
methodName,
result)
| |
Take a Deferred that only ever callbacks. | |
| Inherited from _Assertions | |
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 | |
| |
fails the test unless calling the function f with the
given args and kwargs does not raise
exception. | |
| |
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 | |
| |
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. | |
| |
fails the test if condition evaluates to True | |
| Inherited from TestCase | |
| |
| |
| |
Run the test without collecting errors in a TestResult | |
| |
| |
Hook method for setting up the test fixture before exercising it. | |
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...
|
classobj |
failureException = twisted.trial.unittest.FailTest |
| Inherited from TestCase | |
ClassProvides |
__providedBy__ = <zope.interface.declarations.ClassProvi...
|
| Instance Method Details |
|---|
__init__(self,
methodName=None)
Create an instance of the class that will use the named test method
when executed. Raises a ValueError if the instance does not have a
method with the specified name.
|
mktemp(self)will return a unique name that may be used as either a temporary directory or filename
|
shortDescription(self)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.
|
visit(self, visitor)Call visitor.visitCase(self). |
_prepareClassFixture(self)Lots of tests assume that test methods all run in the same instance of TestCase. This isn't true. Calling this method ensures that self.__class__._testCaseInstance contains an instance of this class that will remain the same for all tests from this class. |
_wait(self, d, running=[])Take a Deferred that only ever callbacks. Block until it happens. |
| Class Variable Details |
|---|
__implemented__
|
__provides__
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Sun Oct 1 10:49:45 2006 | http://epydoc.sf.net |