'Tests members listing for deleted image raises 404.'

def test_get_members_of_deleted_image_raises_404(self):

    req = webob.Request.blank(('/images/%s' % UUID2))
    req.method = 'DELETE'
    res = req.get_response(self.api)
    self.assertEqual(http_client.OK, res.status_int)
    req = webob.Request.blank(('/images/%s/members' % UUID2))
    req.method = 'GET'
    res = req.get_response(self.api)
    self.assertEqual(webob.exc.HTTPNotFound.code, res.status_int)
    self.assertIn(('Image    with    identifier    %s    has    been    deleted.' % UUID2), res.body.decode())
