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

Class TestCase

Known Subclasses:
AttributeType_KnownValues, BERBaseEquality, BERBooleanKnownValues, BEREnumeratedKnownValues, BEREnumeratedSanityCheck, BERIntegerKnownValues, BERIntegerSanityCheck, BERNullKnownValues, BEROctetStringKnownValues, BEROctetStringSanityCheck, BERSequenceKnownValues, Dir2LDIF, DistinguishedName_Init, FromLDIF, 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, LDAPSyntaxPasswords, LDAPSyntaxRDNHandling, LDAPSyntaxSearch, LDIF2Dir, ObjectClass_KnownValues, OnWire, RelativeDistinguishedName_Init, RFC2254Examples, RFC2849_Examples, 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

Method Summary
  assert_(self, condition, message)
  assertApproximates(self, first, second, tolerance, msg)
  assertEqual(self, first, second, msg)
  assertEquals(self, first, second, msg)
  assertIdentical(self, first, second, msg)
  assertIn(self, containee, container, msg)
  assertNotEqual(self, first, second, msg)
  assertNotEquals(self, first, second, msg)
  assertNotIdentical(self, first, second, msg)
  assertNotIn(self, containee, container, msg)
  assertRaises(self, exception, f, *args, **kwargs)
  fail(self, message)
  failIf(self, condition, message)
  failIfEqual(self, first, second, msg)
  failIfEquals(self, first, second, msg)
  failIfIdentical(self, first, second, msg)
  failIfIn(self, containee, container, msg)
  failUnless(self, condition, message)
  failUnlessEqual(self, first, second, msg)
  failUnlessIdentical(self, first, second, msg)
  failUnlessIn(self, containee, container, msg)
  failUnlessRaises(self, exception, f, *args, **kwargs)
  mktemp(self)
  runReactor(self, timesOrSeconds, seconds)
I'll iterate the reactor for a while.
  setUp(self)
  setUpClass(self)
  tearDown(self)
  tearDownClass(self)
  _mktGetCounter(self, base)

Class Variable Summary
NoneType expectedAssertions = None                                                                  
int _assertions = 0                                                                     

Method Details

runReactor(self, timesOrSeconds, seconds=False)

I'll iterate the reactor for a while.

You probably want to use expectedAssertions with this.
Parameters:
timesOrSeconds - Either the number of iterations to run, or, if `seconds' is True, the number of seconds to run for.
           (type=int)
seconds - If this is True, `timesOrSeconds' will be interpreted as seconds, rather than iterations.
           (type=bool)

Class Variable Details

expectedAssertions

Type:
NoneType
Value:
None                                                                  

_assertions

Type:
int
Value:
0                                                                     

Generated by Epydoc 2.1 on Tue Aug 17 17:08:21 2004 http://epydoc.sf.net