
Functions | |
| def | unittester.run (modulePath, functionName) |
| This function should be used for very basic unit tests and only for a rapid development. More... | |
| def | unittester.tryfunction (function, *argv) |
| This function is for debug only. More... | |
| def | KERNEL_PY.kernel.unittester.run (modulePath, functionName) |
| This function should be used for very basic unit tests and only for a rapid development. More... | |
| def | KERNEL_PY.kernel.unittester.tryfunction (function, *argv) |
| This function is for debug only. More... | |
Run very basic unit tests
| 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)
Referenced by enumerate.TEST_keyOf(), KERNEL_PY.kernel.enumerate.TEST_keyOf(), diclookup.TEST_lookup(), KERNEL_PY.kernel.diclookup.TEST_lookup(), TEST_myTestIsNotOk(), services.TEST_objectsManipulation(), KERNEL_PY.kernel.services.TEST_objectsManipulation(), KERNEL_PY.kernel.threadhelper.TEST_runWithCallback(), kernel.TEST_serialization(), KERNEL_PY.kernel.TEST_serialization(), uiexception.TEST_specificException(), KERNEL_PY.kernel.uiexception.TEST_specificException(), and KERNEL_PY.kernel.syshelper.TEST_walktree().
| def KERNEL_PY.kernel.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)
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)
Referenced by KERNEL_PY.kernel.unittester.TEST_myTestIsNotOk().
| def unittester.tryfunction | ( | function, | |
| * | argv | ||
| ) |
This function is for debug only.
It executes the specified function with the specified arguments in a try/except block so as to display the exception in the case where an exception is raised (useful to debug server side of a CORBA process).
| def KERNEL_PY.kernel.unittester.tryfunction | ( | function, | |
| * | argv | ||
| ) |
This function is for debug only.
It executes the specified function with the specified arguments in a try/except block so as to display the exception in the case where an exception is raised (useful to debug server side of a CORBA process).
This function is for debug only. It executes the specified function with the specified arguments in a try/except block so as to display the exception in the case where an exception is raised (useful to debug server side of a CORBA process).