def test_extra_vars_at_call_time(self):
        with client.test_mode as t:
            t.register_json('/job_templates/1/', {
                'id': 1,
                'name': 'frobnicate',
                'related': {'launch': '/job_templates/1/launch/'},
            })
            register_get(t)
            t.register_json('/job_templates/1/launch/', {}, method='GET')
            t.register_json('/job_templates/1/launch/', {'job': 42},
                            method='POST')
            result = self.res.launch(1, extra_vars=['foo: bar'])

            self.assertDictContainsSubset(
                {'foo': 'bar'},
                json.loads(json.loads(t.requests[2].body)['extra_vars'])
            )
            self.assertDictContainsSubset({'changed': True, 'id': 42}, result)
Establish that extra variables specified at call time are
dataset/ETHPy150Open ansible/tower-cli/tests/test_resources_job.py/LaunchTests.test_extra_vars_at_call_time