

def _test_create_hosting_device_templates(self):
    nnt = self._create_hosting_device_template(self.fmt, NN_TEMPLATE_NAME, True, NN_CATEGORY)
    nw_node_template = self.deserialize(self.fmt, nnt)
    vmt = self._create_hosting_device_template(self.fmt, VM_TEMPLATE_NAME, True, VM_CATEGORY, booting_time=VM_BOOTING_TIME, slot_capacity=VM_SLOT_CAPACITY, desired_slots_free=VM_DESIRED_SLOTS_FREE, device_driver=TEST_DEVICE_DRIVER, plugging_driver=TEST_PLUGGING_DRIVER)
    vm_template = self.deserialize(self.fmt, vmt)
    hwt = self._create_hosting_device_template(self.fmt, HW_TEMPLATE_NAME, True, HW_CATEGORY)
    hw_template = self.deserialize(self.fmt, hwt)
    return {
        'network_node': {
            'template': nw_node_template,
            'router_type': NS_ROUTERTYPE_NAME,
        },
        'vm': {
            'template': vm_template,
            'router_type': VM_ROUTERTYPE_NAME,
        },
        'hw': {
            'template': hw_template,
            'router_type': HW_ROUTERTYPE_NAME,
        },
    }

dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/tests/unit/cisco/device_manager/test_db_device_manager.py DeviceManagerTestCaseMixin._test_create_hosting_device_templates/original