1.. SPDX-License-Identifier: GPL-2.0 2 3=============== 4Python unittest 5=============== 6 7Checking consistency of python modules can be complex. Sometimes, it is 8useful to define a set of unit tests to help checking them. 9 10While the actual test implementation is usecase dependent, Python already 11provides a standard way to add unit tests by using ``import unittest``. 12 13Using such class, requires setting up a test suite. Also, the default format 14is a little bit ackward. To improve it and provide a more uniform way to 15report errors, some unittest classes and functions are defined. 16 17 18Unittest helper module 19====================== 20 21.. automodule:: lib.python.unittest_helper 22 :members: 23 :show-inheritance: 24 :undoc-members: 25