

def test_update_hosting_device_template(self):
    name = 'new_hosting_device_template1'
    attrs = self._get_test_hosting_device_template_attr(name=name)
    with self.hosting_device_template() as hdt:
        data = {
            'hosting_device_template': {
                'name': name,
            },
        }
        req = self.new_update_request('hosting_device_templates', data, hdt['hosting_device_template']['id'])
        res = self.deserialize(self.fmt, req.get_response(self.ext_api))
        for (k, v) in six.iteritems(attrs):
            self.assertEqual(v, res['hosting_device_template'][k])

dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/tests/unit/cisco/device_manager/test_db_device_manager.py TestDeviceManagerDBPlugin.test_update_hosting_device_template/original