

def test_build_command_with_args(self):
    deployment = mommy.make(models.Deployment, task__name='test_env')
    configuration = mommy.make(models.Configuration, key='arg', value='arg_value', task_argument=True, task_name='test_env')
    deployment.stage.configuration_set.add(configuration)
    command = backend.build_command(deployment.stage.project, deployment, {
        
    })
    (fabfile_path, active_loc) = backend.get_fabfile_path(deployment.stage.project)
    self.assertEqual(command, 'fab test_env:arg="arg_value" --abort-on-prompts --fabfile={}'.format(fabfile_path))

dataset/ETHPy150Open fabric-bolt/fabric-bolt/fabric_bolt/task_runners/tests.py BackendTests.test_build_command_with_args/original