def _load_tests(self, config, plugins):
        self.tests = {}
        for plugin in plugins:
            if hasattr(plugin.plugin, '_takes_config'):
                # TODO(??): config could come from profile ...
                cfg = config.get_option(plugin.plugin._takes_config)
                if cfg is None:
                    genner = importlib.import_module(plugin.plugin.__module__)
                    cfg = genner.gen_config(plugin.plugin._takes_config)
                plugin.plugin._config = cfg
            for check in plugin.plugin._checks:
                self.tests.setdefault(check, []).append(plugin.plugin)
                logger.debug('added function %s (%s) targetting %s',
                             plugin.name, plugin.plugin._test_id, check)
Placeholder. Called when we've received headers for a request. You can
dataset/ETHPy150Open openstack/bandit/bandit/core/test_set.py/BanditTestSet._load_tests--crossover with--dataset/ETHPy150Open ecdavis/pants/pants/http/client.py/HTTPClient.on_headers