def _mark_class_skipped(cls, reason):
    tests = [attr for attr in dir(cls) if _is_test_method_name(attr) or
             _is_test_fixture(attr)]
    for test in tests:
        method = getattr(cls, test)
        if callable(method):
            setattr(cls, test, _mark_method_skipped(method, reason))
    return cls
Take an iterator of names and return a dict with component names
dataset/ETHPy150Open openstack/horizon/openstack_dashboard/test/integration_tests/decorators.py/_mark_class_skipped--crossover with--dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.util/src/openmdao/util/nameutil.py/partition_names_by_comp