basicproperty.tests.test_factories
index
p:\properties\basicproperty\tests\test_factories.py

 
Modules
       
basicproperty.basic
basictypes.callable
basicproperty.common
basictypes.factory
time
unittest

 
Classes
       
TestCase(object)
DTPropertyTest
object
TestClass
t

 
class DTPropertyTest(TestCase)
    
Method resolution order:
DTPropertyTest
TestCase
object

Methods defined here:
testCoerce(self)
Test the whole DATATABLE set for coercion

Methods inherited from TestCase:
__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)
assertAlmostEqual = failUnlessAlmostEqual(self, first, second, places=7, msg=None)
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.
 
Note that decimal places (from zero) is usually not the same
as significant digits (measured from the most signficant digit).
assertAlmostEquals = failUnlessAlmostEqual(self, first, second, places=7, msg=None)
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.
 
Note that decimal places (from zero) is usually not the same
as significant digits (measured from the most signficant digit).
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.
assertNotAlmostEqual = failIfAlmostEqual(self, first, second, places=7, msg=None)
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.
 
Note that decimal places (from zero) is usually not the same
as significant digits (measured from the most signficant digit).
assertNotAlmostEquals = failIfAlmostEqual(self, first, second, places=7, msg=None)
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.
 
Note that decimal places (from zero) is usually not the same
as significant digits (measured from the most signficant digit).
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.
failIfAlmostEqual(self, first, second, places=7, msg=None)
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.
 
Note that decimal places (from zero) is usually not the same
as significant digits (measured from the most signficant digit).
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.
failUnlessAlmostEqual(self, first, second, places=7, msg=None)
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.
 
Note that decimal places (from zero) is usually not the same
as significant digits (measured from the most signficant digit).
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)
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.
 
The default implementation of this method returns the first line of
the specified test method's docstring.
tearDown(self)
Hook method for deconstructing the test fixture after testing it.

Data and other attributes inherited from TestCase:
__dict__ = <dictproxy object at 0x01B26BB0>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'TestCase' objects>
list of weak references to the object (if defined)
failureException = <class exceptions.AssertionError at 0x00764B10>
Assertion failed.

 
class TestClass(object)
     Data and other attributes defined here:
__dict__ = <dictproxy object at 0x01B26870>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'TestClass' objects>
list of weak references to the object (if defined)
arg = <BasicProperty 'arg'>
Single Argument
args = <BasicProperty 'args'>
Multiple Arguments
call = <BasicProperty 'call'>
single callable

 
class t(object)
     Methods defined here:
__call__(self)
test(self, a=None)

Class methods defined here:
n = test(self, a=None) from type

Static methods defined here:
m = test(self, a=None)

Data and other attributes defined here:
__dict__ = <dictproxy object at 0x01B26910>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 't' objects>
list of weak references to the object (if defined)

 
Functions
       
test(a=None)

 
Data
        DATATABLE = [('arg', [(Argument('test'), ['test', ('test',)]), (Argument('test', 2), [('test', 2), {'default': 2, 'name': 'test'}]), (Argument('test', 2, <type 'str'>), [('test', 2, <type 'str'>), {'baseType': <type 'str'>, 'default': 2, 'name': 'test'}])], []), ('args', [([Argument('test')], [['test'], [(...)]]), ([Argument('test', 2)], [[(...)], [{...}]]), ([Argument('test', 2, <type 'str'>)], [[(...)], [{...}]])], []), ('call', [(<basictypes.callable.Callable object at 0x01A2CAB0>, [<function test at 0x01A28630>]), (<basictypes.callable.Callable object at 0x01A2C9F0>, [<unbound method t.test>]), (<basictypes.callable.Callable object at 0x01A2CB10>, [<bound method type.test of <class 'basicproperty.tests.test_factories.t'>>]), (<basictypes.callable.Callable object at 0x01A2CB70>, [<function test at 0x01A286B0>]), (<basictypes.callable.Callable object at 0x01A2CBF0>, [<bound method type.test of <class 'basicproperty.tests.test_factories.t'>>]), (<basictypes.callable.Callable object at 0x01A2CC50>, [<basicproperty.tests.test_factories.t object at 0x01A2C430>])], [])]
suite = <unittest.TestSuite tests=[<unittest.TestSuite t...ctories.DTPropertyTest testMethod=testCoerce>]>]>
u = <basicproperty.tests.test_factories.t object at 0x01A2C430>