Function to add all available unittests of the module with given name (e.g. “obspy.core”) to the given unittest TestSuite. All submodules in the “tests” directory whose names are starting with test_ are added.
Parameters: |
|
---|
Example
>>> import unittest
>>> suite = unittest.TestSuite()
>>> add_unittests(suite, "obspy.core")