Package twisted :: Package trial :: Module unittest :: Class TestCase
[show private | hide private]
[frames | no frames]

Type TestCase

    object --+    
             |    
object --+   |    
         |   |    
  TestCase --+    
             |    
   _Assertions --+
                 |
                TestCase

Known Subclasses:
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, TestCallableOverride, TestCaseWithKnownValues, TestComparison, TestComparison, TestConfig, TestDeleteOpLDIF, TestDiff, TestDiffEntry, TestEntryMatch, TestEquality, TestInMemoryDatabase, TestInvalid, TestLDIFDeltaParsing, TestLDIFParsing, TestLMHash, TestMaybeSubstring, TestModificationComparison, TestModificationOpLDIF, TestModifications, TestNTHash, TestOperationLDIF, TestOperations, TestSchema, TestSetOperations, TestValid, TestWhitespace, Tree

Method Summary
  __init__(self, methodName)
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)
  mktemp(self)
will return a unique name that may be used as either a temporary directory or filename
  run(self, result)
  shortDescription(self)
Returns a one-line description of the test, or None if no description has been provided.
  visit(self, visitor)
Call visitor.visitCase(self).
    Inherited from TestCase
  __repr__(self)
  __str__(self)
  countTestCases(self)
  debug(self)
Run the test without collecting errors in a TestResult
  defaultTestResult(self)
  id(self)
  setUp(self)
Hook method for setting up the test fixture before exercising it.
  tearDown(self)
Hook method for deconstructing the test fixture after testing it.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
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)
(Constructor)

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.
Overrides:
unittest.TestCase.__init__ (inherited documentation)

mktemp(self)

will return a unique name that may be used as either a temporary directory or filename

Note: you must call os.mkdir on the value returned from this method if you wish to use it as a directory!

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.
Overrides:
unittest.TestCase.shortDescription (inherited documentation)

visit(self, visitor)

Call visitor.visitCase(self).

Class Variable Details

__implemented__

Type:
Implements
Value:
<implementedBy twisted.trial.unittest.TestCase>                        

__provides__

Type:
ClassProvides
Value:
<zope.interface.declarations.ClassProvides object at 0x407788ec>       

Generated by Epydoc 2.1 on Sat Aug 26 13:54:33 2006 http://epydoc.sf.net