

def test_create_vm_hosting_device(self):
    with self.hosting_device_template() as hdt:
        with v.port(subnet=self._mgmt_subnet) as mgmt_port:
            creds = device_manager_test_support._uuid()
            attrs = self._get_test_hosting_device_attr(template_id=hdt['hosting_device_template']['id'], management_port_id=mgmt_port['port']['id'], auto_delete=True, credentials_id=creds)
            with self.hosting_device(template_id=hdt['hosting_device_template']['id'], management_port_id=mgmt_port['port']['id'], auto_delete=True, credentials_id=creds) as hd:
                for (k, v) in six.iteritems(attrs):
                    self.assertEqual(v, hd['hosting_device'][k])

dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/tests/unit/cisco/device_manager/test_db_device_manager.py TestDeviceManagerDBPlugin.test_create_vm_hosting_device/VarMisuse@22/33 `self`->`v`