'Tests that the registry API delete returns the image metadata'

def test_delete_image_response(self):

    image = self.FIXTURES[0]
    res = self.get_api_response_ext(http.OK, url=('/images/%s' % image['id']), method='DELETE')
    deleted_image = jsonutils.loads(res.body)['image']
    self.assertEqual(image['id'], deleted_image['id'])
    self.assertTrue(deleted_image['deleted'])
    self.assertTrue(deleted_image['deleted_at'])
