'Tests deleting image members raises right exception'

def test_delete_member(self):

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