

def test_hosting_device_unassign_from_hosting_device(self):
    self._setup_cfg_agents()
    with self.hosting_device_template(host_category=self.host_category) as hosting_device_template:
        hdt = hosting_device_template['hosting_device_template']
        with self.hosting_device(template_id=hdt['id']) as hosting_device:
            cfg_agent_id = self._agent_dict[L3_CFG_HOST_A]['id']
            cfg_agent_id._test_assign_hosting_device_to_cfg_agent(hosting_device, cfg_agent_id)
            hd = hosting_device['hosting_device']
            self._unassign_hosting_device_from_cfg_agent(cfg_agent_id, hd['id'])
            hd_final = self._show('hosting_devices', hd['id'])['hosting_device']
            self.assertIsNone(hd_final['cfg_agent_id'])

dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/tests/unit/cisco/device_manager/test_hosting_device_cfg_agent_scheduler.py HostingDeviceConfigAgentSchedulerTestCase.test_hosting_device_unassign_from_hosting_device/VarMisuse@68/126 `self`->`cfg_agent_id`