'Test for HEAD /images/<ID>'

def test_image_meta(self):

    expected_headers = {'x-image-meta-id': UUID2, 'x-image-meta-name': 'fake    image    #2'}
    req = webob.Request.blank(('/images/%s' % UUID2))
    req.method = 'HEAD'
    res = req.get_response(self.api)
    self.assertEqual(http_client.OK, res.status_int)
    self.assertFalse(res.location)
    for (key, value) in six.iteritems(expected_headers):
        self.assertEqual(value, res.headers[key])
