

def test_hosting_device_assign_to_non_existing_cfg_agent(self):
    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:
            hd = hosting_device['hosting_device']
            no_cfg_agent_id = '00000000-0000-0000-0000-000000000099'
            self._assign_hosting_device_to_cfg_agent(hdt, hd['id'], exc.HTTPNotFound.code)
            hd_after = self._show('hosting_devices', hd['id'])['hosting_device']
            self.assertIsNone(hd_after['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_assign_to_non_existing_cfg_agent/VarMisuse@65/138 `no_cfg_agent_id`->`hdt`