def test_extra_vars_at_runtime_tower_20(self):
        with client.test_mode as t:
            t.register_json('/job_templates/1/', {
                'ask_variables_on_launch': True,
                'extra_vars': 'spam: eggs',
                'id': 1,
                'name': 'frobnicate',
                'related': {},
            })
            register_get(t)
            t.register_json('/config/', {'version': '2.0'}, method='GET')
            t.register_json('/jobs/', {'id': 42}, method='POST')
            t.register_json('/jobs/42/start/', {}, method='GET')
            t.register_json('/jobs/42/start/', {}, method='POST')
            with mock.patch.object(click, 'edit') as edit:
                edit.return_value = '# Nothing.\nfoo: bar'
                result = self.res.launch(1, no_input=False)
                self.assertDictContainsSubset(
                    {"spam": "eggs"},
                    yaml.load(edit.mock_calls[0][1][0])
                )
            self.assertDictContainsSubset(
                {'foo': 'bar'},
                json.loads(json.loads(t.requests[2].body)['extra_vars'])
            )
            self.assertDictContainsSubset({'changed': True, 'id': 42}, result)
Find all programs this user has defined
dataset/ETHPy150Open ansible/tower-cli/tests/test_resources_job.py/LaunchTests.test_extra_vars_at_runtime_tower_20--crossover with--dataset/ETHPy150Open Anaconda-Platform/chalmers/chalmers/program/base.py/ProgramBase.find_for_user