test.collect.Function API [rev. 38799]

class Function(test.collect.Item):

a Function Item is responsible for setting up and executing a Python callable test object.

class attributes and properties:

Class: <property object (dynamically calculated value)>
Directory: <property object (dynamically calculated value)>
DoctestFile: <property object (dynamically calculated value)>
Function: <property object (dynamically calculated value)>
Generator: <property object (dynamically calculated value)>
Instance: <property object (dynamically calculated value)>
Module: <property object (dynamically calculated value)>
obj: <property object (dynamically calculated value)>

methods:

def __init__(self, name, parent, args=(), obj=<object object at 0x200000000041e090>, sort_value=None):

*no docstring available*

def execute(self, target, *args):

execute the given test function.

def finishcapture(self):

*no docstring available*

def join(self, name):

return a child item for the given name. Usually the session feeds the join method with each name obtained from ``colitem.run()``. If the return value is None it means the ``colitem`` was not able to resolve with the given name.

def listchain(self):

return list of all parent collectors up to ourself.

def listnames(self):

*no docstring available*

def multijoin(self, namelist):

return a list of colitems for the given namelist.

def run(self):

setup and execute the underlying test function.

def setup(self):

perform setup for this test function.

def startcapture(self):

*no docstring available*

def teardown(self):

perform teardown for this test function.

def __cmp__(self, other):

*no docstring available*

def __eq__(self, other):

*no docstring available*

def __hash__(self):

*no docstring available*

def __ne__(self, other):

def __repr__(self):

*no docstring available*