'Tests that the /images DELETE registry API deletes the image'

def test_delete_image(self):

    res = self.get_api_response_ext(http.OK)
    res_dict = jsonutils.loads(res.body)
    orig_num_images = len(res_dict['images'])
    self.get_api_response_ext(http.OK, url=('/images/%s' % UUID2), method='DELETE')
    res = self.get_api_response_ext(http.OK)
    res_dict = jsonutils.loads(res.body)
    new_num_images = len(res_dict['images'])
    self.assertEqual((orig_num_images - 1), new_num_images)
