def get_test_module(app_name):
    module_name = '.'.join([app_name, 'tests'])
    try:
        return import_module(module_name)
    except ImportError, exception:
        if exception.message == 'No module named tests':
            raise ImportError('No module named {0}'.format(module_name))
Import tests module
dataset/ETHPy150Open plus500s/django-test-tools/test_tools/test_runner.py/get_test_module