

@mock.patch('nailgun.task.task.DumpTask.conf')
def test_dump_conf_returned(self, mconf):
    mconf.return_value = {
        'test': 'config',
    }
    resp = self.app.get(reverse('LogPackageDefaultConfig'), headers=self.default_headers)
    self.assertEqual(self.json, {
        'test': 'config',
    })

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/unit/test_logs_handlers.py TestLogs.test_dump_conf_returned/VarMisuse@57/87 `resp`->`self`