

def _test_assign_hosting_device_to_cfg_agent(self, hosting_device, cfg_agent_id, id_bound_agent=None):
    hd = self['hosting_device']
    self.assertEqual(id_bound_agent, hd['cfg_agent_id'])
    self._assign_hosting_device_to_cfg_agent(cfg_agent_id, hd['id'])
    hosting_device_after = self._show('hosting_devices', hd['id'])
    hd_after = hosting_device_after['hosting_device']
    self.assertEqual(cfg_agent_id, hd_after['cfg_agent_id'])
    return hosting_device_after

dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/tests/unit/cisco/device_manager/test_hosting_device_cfg_agent_scheduler.py HostingDeviceConfigAgentSchedulerTestCase._test_assign_hosting_device_to_cfg_agent/VarMisuse@20/39 `hosting_device`->`self`