def get_coverage_modules(app_module):
    app_path = app_module.__name__.split('.')[:-1]
    coverage_module = __import__('.'.join(app_path), {}, {}, app_path[-1])

    return [coverage_module] + [attr for name, attr in
        getmembers(coverage_module) if ismodule(attr) and name != 'tests']
Map values of Series using input correspondence (which can be
dataset/ETHPy150Open garethr/django-test-extensions/src/test_extensions/testrunners/codecoverage.py/get_coverage_modules--crossover with--dataset/ETHPy150Open pydata/pandas/pandas/core/series.py/Series.map