dispatch.tests.test_saferef
index
p:\dispatch\tests\test_saferef.py

 
Modules
            
traceback
unittest
weakref
 
Classes
            
TestCase
Tester
object
Test1
Test2
 
class Test1(object)
       
   Methods defined here:
x(self)

Data and non-method functions defined here:
__dict__ = <dict-proxy object at 0x0084F908>
__doc__ = None
__module__ = 'dispatch.tests.test_saferef'
__weakref__ = <member '__weakref__' of 'Test1' objects>

Methods inherited from object:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__hash__(...)
x.__hash__() <==> hash(x)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__reduce__(...)
helper for pickle
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__str__(...)
x.__str__() <==> str(x)

Data and non-method functions inherited from object:
__class__ = <type 'type'>
__new__ = <built-in method __new__ of type object at 0x1E0BD978>
T.__new__(S, ...) -> a new object with type S, a subtype of T
 
class Test2(object)
       
   Methods defined here:
__call__(self, obj)

Data and non-method functions defined here:
__dict__ = <dict-proxy object>
__doc__ = None
__module__ = 'dispatch.tests.test_saferef'
__weakref__ = <member '__weakref__' of 'Test2' objects>

Methods inherited from object:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__hash__(...)
x.__hash__() <==> hash(x)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__reduce__(...)
helper for pickle
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__str__(...)
x.__str__() <==> str(x)

Data and non-method functions inherited from object:
__class__ = <type 'type'>
__new__ = <built-in method __new__ of type object at 0x1E0BD978>
T.__new__(S, ...) -> a new object with type S, a subtype of T
 
class Tester(TestCase)
       
   Methods defined here:
_closure(self, ref)
Dumb utility mechanism to increment deletion counter
setUp(self)
tearDown(self)
test(self)
testIn(self)
Test the "in" operator for safe references (cmp)
testRepresentation(self)
Test that the reference object's representation works
 
XXX Doesn't currently check the results, just that no error
        is raised
testShortCircuit(self)
Test that creation short-circuits to reuse existing references
testValid(self)
Test that the references are valid (return instance methods)

Data and non-method functions defined here:
__doc__ = None
__module__ = 'dispatch.tests.test_saferef'

Methods inherited from TestCase:
_TestCase__exc_info = __exc_info(self)
Return a version of sys.exc_info() with the traceback frame
minimised; usually the top level of the traceback frame is not
needed.
__call__(self, result=None)
__init__(self, methodName='runTest')
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.
__repr__(self)
__str__(self)
assertEqual = failUnlessEqual(self, first, second, msg=None)
Fail if the two objects are unequal as determined by the '!='
operator.
assertEquals = failUnlessEqual(self, first, second, msg=None)
Fail if the two objects are unequal as determined by the '!='
operator.
assertNotEqual = failIfEqual(self, first, second, msg=None)
Fail if the two objects are equal as determined by the '=='
operator.
assertNotEquals = failIfEqual(self, first, second, msg=None)
Fail if the two objects are equal as determined by the '=='
operator.
assertRaises = 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. If a different type of exception is
thrown, it will not be caught, and the test case will be
deemed to have suffered an error, exactly as for an
unexpected exception.
assert_ = failUnless(self, expr, msg=None)
Fail the test unless the expression is true.
countTestCases(self)
debug(self)
Run the test without collecting errors in a TestResult
defaultTestResult(self)
fail(self, msg=None)
Fail immediately, with the given message.
failIf(self, expr, msg=None)
Fail the test if the expression is true.
failIfEqual(self, first, second, msg=None)
Fail if the two objects are equal as determined by the '=='
operator.
failUnless(self, expr, msg=None)
Fail the test unless the expression is true.
failUnlessEqual(self, first, second, msg=None)
Fail if the two objects are unequal as determined by the '!='
operator.
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. If a different type of exception is
thrown, it will not be caught, and the test case will be
deemed to have suffered an error, exactly as for an
unexpected exception.
id(self)
run(self, result=None)
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.

Data and non-method functions inherited from TestCase:
failureException = <class exceptions.AssertionError>
Assertion failed.
 
Functions
            
getSuite()
test2(obj)
 
Data
             __file__ = r'p:\dispatch\tests\test_saferef.pyc'
__name__ = 'dispatch.tests.test_saferef'