'Tests deleting image members raises right exception'

def test_delete_member_on_non_existing_image(self):

    test_router = router.API(self.mapper)
    api = test_utils.FakeAuthMiddleware(test_router, is_admin=True)
    test_uri = '/images/%s/members/pattieblack'
    req = webob.Request.blank((test_uri % _gen_uuid()))
    req.method = 'DELETE'
    res = req.get_response(api)
    self.assertEqual(http_client.NOT_FOUND, res.status_int)
