Verify return values from a function called with keyword arguments
Column names specify either the names of keyword arguments, except for the
last column, whose contents are always the expected return value. The only
required constructor keyword for FunctionChecker is testFunction , which
must be the callable whose return value is being checked.
Methods
|
|
getMapper
invokeFunction
setupHandlers
|
|
getMapper
|
getMapper ( self, name )
Map column names to dictionary keys (keyword args)
|
|
invokeFunction
|
invokeFunction ( self, cell )
Invoke the function and verify the result
|
|
setupHandlers
|
setupHandlers (
self,
row,
rows,
)
Set up handlers, always treating the last column as the output
|
|