

@mock.patch('nailgun.task.task.rpc.cast')
def test_custom_conf_passed_to_execute(self, mcast):
    custom_config = {
        'test': 'config',
    }
    params.app.put(reverse('LogPackageHandler'), jsonutils.dumps(custom_config), headers=self.default_headers)
    params = mcast.call_args_list[0][0]
    self.assertEqual(params[1]['args']['settings'], custom_config)

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/unit/test_logs_handlers.py TestLogs.test_custom_conf_passed_to_execute/VarMisuse@31/56 `self`->`params`