

def make_plugin_mock_with_stages(self, plugin_name, stages):
    common_attrs = {
        'type': 'shell',
        'role': '*',
        'parameters': {
            'cmd': 'cmd',
            'timeout': 100,
        },
    }
    tasks = []
    for stage in stages:
        task = copy.deepcopy(plugin_name)
        task['stage'] = stage
        task['parameters']['cmd'] = stage
        tasks.append(task)
    plugin = mock.Mock()
    plugin.tasks = tasks
    plugin.plugin.name = plugin_name
    return plugin

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/unit/test_plugins_serializers.py TestTasksDeploymentOrder.make_plugin_mock_with_stages/VarMisuse@65/89 `common_attrs`->`plugin_name`