

def _unassign_hosting_device_from_cfg_agent(self, cfg_agent_id, hosting_device_id, expected_code=exc.HTTPNoContent.code, admin_context=True):
    path = ('/agents/%s/%s/%s.%s' % (cfg_agent_id, ciscocfgagentscheduler.CFG_AGENT_HOSTING_DEVICES, hosting_device_id, self.fmt))
    req = self._path_delete_request(admin_context, admin_context=admin_context)
    res = req.get_response(self.ext_api)
    self.assertEqual(expected_code, res.status_int)

dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/tests/unit/cisco/device_manager/test_hosting_device_cfg_agent_scheduler.py HostingDeviceCfgAgentSchedulerTestMixIn._unassign_hosting_device_from_cfg_agent/VarMisuse@52/110 `path`->`admin_context`