

def test_sorts_plugins_by_numerical_postfixes(self):
    plugin1 = self.make_plugin_mock_with_stages('name1', ['pre_deployment/-100', 'pre_deployment/100.0', 'pre_deployment/+100', 'pre_deployment'])
    plugin2 = self.make_plugin_mock_with_stages('name2', ['pre_deployment/-99', 'pre_deployment/100', 'pre_deployment'])
    tasks = commands.hook.deployment_tasks([plugin2, plugin1], consts.STAGES.pre_deployment)
    commands = map((lambda t: t['parameters']['cmd']), tasks)
    self.assertEqual(commands, ['pre_deployment/-100', 'pre_deployment/-99', 'pre_deployment', 'pre_deployment', 'pre_deployment/100.0', 'pre_deployment/+100', 'pre_deployment/100'])

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/unit/test_plugins_serializers.py TestTasksDeploymentOrder.test_sorts_plugins_by_numerical_postfixes/VarMisuse@48/115 `self`->`commands`