test_server.py 文件源码

python
阅读 34 收藏 0 点赞 0 评论 0

项目:mogan 作者: openstack 项目源码 文件源码
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'])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号