Version: 8.3.0
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
unittester

Functions

def unittester.run
 This function should be used for very basic unit tests and only for a rapid development. More...
 
def unittester.tryfunction
 This function is for debug only. More...
 

Detailed Description

Run very basic unit tests

Function Documentation

def unittester.run (   modulePath,
  functionName 
)

This function should be used for very basic unit tests and only for a rapid development.

A better way should be the pyunit framework. The function functionName is supposed here to return a boolean value indicating if the test is OK (True) or NOT OK (False)

def unittester.tryfunction (   function,
  argv 
)

This function is for debug only.

It executes the specified function with the specified arguments in a try/except bloc so that to display the exception in the case where an exception is raised (usefull to debug server side of a CORBA process).