twisted.internet.test.test_base.DelayedCallMixin(object) class documentationtwisted.internet.test.test_base
(View In Hierarchy)
Known subclasses: twisted.internet.test.test_base.DelayedCallDebugTests, twisted.internet.test.test_base.DelayedCallNoDebugTests
| Method | setUp | Create two DelayedCall
instanced scheduled to run at different times. |
| Method | test_str | The string representation of a DelayedCall
instance, as returned by str,
includes the unsigned id of the instance, as well as its state, the
function to be called, and the function arguments. |
| Method | test_repr | The string representation of a DelayedCall
instance, as returned by {repr}, is identical to that returned by str. |
| Method | test_lt | For two instances of DelayedCall
a and b, a < b is true if and
only if a is scheduled to run before b. |
| Method | test_le | For two instances of DelayedCall
a and b, a <= b is true if and
only if a is scheduled to run before b or at the
same time as b. |
| Method | test_gt | For two instances of DelayedCall
a and b, a > b is true if and
only if a is scheduled to run after b. |
| Method | test_ge | For two instances of DelayedCall
a and b, a > b is true if and
only if a is scheduled to run after b or at the
same time as b. |
| Method | test_eq | A DelayedCall
instance is only equal to itself. |
| Method | test_ne | A DelayedCall
instance is not equal to any other object. |
| Method | _getDelayedCallAt | Get a DelayedCall
instance at a given time. |
Get a DelayedCall
instance at a given time.
| Parameters | time | The absolute time at which the returned DelayedCall
will be scheduled. |
Create two DelayedCall
instanced scheduled to run at different times.
The string representation of a DelayedCall
instance, as returned by str,
includes the unsigned id of the instance, as well as its state, the
function to be called, and the function arguments.
The string representation of a DelayedCall
instance, as returned by {repr}, is identical to that returned by str.
For two instances of DelayedCall
a and b, a < b is true if and
only if a is scheduled to run before b.
For two instances of DelayedCall
a and b, a <= b is true if and
only if a is scheduled to run before b or at the
same time as b.
For two instances of DelayedCall
a and b, a > b is true if and
only if a is scheduled to run after b.
For two instances of DelayedCall
a and b, a > b is true if and
only if a is scheduled to run after b or at the
same time as b.