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

Class TestTaskQueue

object --+    
         |    
  TestCase --+
             |
            TestTaskQueue


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)
  testContains(self)
'in' keyword works properly
  testDeadlines(self)
Deadlines are in the future
  testDeadlinesDoNotRepeat(self)
Two simultaneous tasks do not share deadlines
  testGetInvalidTask(self)
Exception is raised when getting invalid task
  testGetIterUpToNow(self)
Iterating over queue returns only expired tasks
  testGetTask(self)
Task is returned when requested
  testInvalidUnregister(self)
Exception is raised on unregistering when id does not exist
  testQueueAttributes(self)
Base attributes are sane
  testRegister(self)
Task registration
  testRegisterInvalid(self)
Exception raises on invalid task registration
  testTaskRemoved(self)
Task is removed correctly
  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)

testContains(self)

'in' keyword works properly

testDeadlines(self)

Deadlines are in the future

testDeadlinesDoNotRepeat(self)

Two simultaneous tasks do not share deadlines

testGetInvalidTask(self)

Exception is raised when getting invalid task

testGetIterUpToNow(self)

Iterating over queue returns only expired tasks

testGetTask(self)

Task is returned when requested

testInvalidUnregister(self)

Exception is raised on unregistering when id does not exist

testQueueAttributes(self)

Base attributes are sane

testRegister(self)

Task registration

testRegisterInvalid(self)

Exception raises on invalid task registration

testTaskRemoved(self)

Task is removed correctly

testUnregister(self)

Task unregistration

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