def test_update_not_found(self):
uuid = uuidutils.generate_uuid()
response = self.patch_json('/servers/%s' % uuid,
[{'path': '/metadata/a', 'value': 'b',
'op': 'add'}],
headers=self.headers,
expect_errors=True)
self.assertEqual(http_client.NOT_FOUND, response.status_int)
self.assertEqual('application/json', response.content_type)
self.assertTrue(response.json['error_message'])
评论列表
文章目录