Module test_loop :: Class TestEngine
[show private | hide private]
[frames | no frames]

Class TestEngine

object --+    
         |    
  TestCase --+
             |
            TestEngine


Method Summary
  __init__(self, methodName)
Create an instance of the class that will use the named test method when executed. (inherited from TestCase)
  __call__(self, result)
(inherited from TestCase)
a new object with type S, a subtype of T __new__(S, ...)
  __repr__(self)
(inherited from TestCase)
  __str__(self)
(inherited from TestCase)
  assert_(self, expr, msg)
Fail the test unless the expression is true. (inherited from TestCase)
  assertAlmostEqual(self, first, second, places, msg)
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. (inherited from TestCase)
  assertAlmostEquals(self, first, second, places, msg)
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. (inherited from TestCase)
  assertEqual(self, first, second, msg)
Fail if the two objects are unequal as determined by the '==' operator. (inherited from TestCase)
  assertEquals(self, first, second, msg)
Fail if the two objects are unequal as determined by the '==' operator. (inherited from TestCase)
  assertNotAlmostEqual(self, first, second, places, msg)
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. (inherited from TestCase)
  assertNotAlmostEquals(self, first, second, places, msg)
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. (inherited from TestCase)
  assertNotEqual(self, first, second, msg)
Fail if the two objects are equal as determined by the '==' operator. (inherited from TestCase)
  assertNotEquals(self, first, second, msg)
Fail if the two objects are equal as determined by the '==' operator. (inherited from TestCase)
  assertRaises(self, excClass, callableObj, *args, **kwargs)
Fail unless an exception of class excClass is thrown by callableObj when invoked with arguments args and keyword arguments kwargs. (inherited from TestCase)
  countTestCases(self)
(inherited from TestCase)
  debug(self)
Run the test without collecting errors in a TestResult (inherited from TestCase)
  defaultTestResult(self)
(inherited from TestCase)
  fail(self, msg)
Fail immediately, with the given message. (inherited from TestCase)
  failIf(self, expr, msg)
Fail the test if the expression is true. (inherited from TestCase)
  failIfAlmostEqual(self, first, second, places, msg)
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. (inherited from TestCase)
  failIfEqual(self, first, second, msg)
Fail if the two objects are equal as determined by the '==' operator. (inherited from TestCase)
  failUnless(self, expr, msg)
Fail the test unless the expression is true. (inherited from TestCase)
  failUnlessAlmostEqual(self, first, second, places, msg)
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. (inherited from TestCase)
  failUnlessEqual(self, first, second, msg)
Fail if the two objects are unequal as determined by the '==' operator. (inherited from TestCase)
  failUnlessRaises(self, excClass, callableObj, *args, **kwargs)
Fail unless an exception of class excClass is thrown by callableObj when invoked with arguments args and keyword arguments kwargs. (inherited from TestCase)
  id(self)
(inherited from TestCase)
  registerTask(self, delay)
Register a task
  run(self, result)
(inherited from TestCase)
  setUp(self)
Hook method for setting up the test fixture before exercising it.
  shortDescription(self)
Returns a one-line description of the test, or None if no description has been provided. (inherited from TestCase)
  tearDown(self)
Hook method for deconstructing the test fixture after testing it. (inherited from TestCase)
  testDeadlines(self)
Deadlines are in the future
  testDeadlinesDoNotRepeat(self)
Two simultaneous tasks do not share deadlines
  testEngineAttributes(self)
Base attributes
  testEngineRunningAndStopping(self)
Engine is running and stopping
  testExceptionHandling(self)
Exceptions are being handled by the 'handleException' method
  testInvalidUnregister(self)
Exception is raised when id does not exist
  testRegister(self)
Task registration
  testRegisterInvalidCall(self)
Exception raises on invalid task registration
  testTaskUpdating(self)
Update is working
  testUnregister(self)
Task unregistration

Method Details

__new__(S, ...)

Returns:
a new object with type S, a subtype of T

registerTask(self, delay=0)

Register a task

setUp(self)

Hook method for setting up the test fixture before exercising it.
Overrides:
unittest.TestCase.setUp (inherited documentation)

testDeadlines(self)

Deadlines are in the future

testDeadlinesDoNotRepeat(self)

Two simultaneous tasks do not share deadlines

testEngineAttributes(self)

Base attributes

testEngineRunningAndStopping(self)

Engine is running and stopping

testExceptionHandling(self)

Exceptions are being handled by the 'handleException' method

testInvalidUnregister(self)

Exception is raised when id does not exist

testRegister(self)

Task registration

testRegisterInvalidCall(self)

Exception raises on invalid task registration

testTaskUpdating(self)

Update is working

testUnregister(self)

Task unregistration

Generated by Epydoc 1.1 on Sun Dec 7 16:05:43 2003 http://epydoc.sf.net