'Checking if user is admin causes uncaught error.
When checking if a user is an admin, keystone.exception.Unauthorized
is raised but not caught if the user is not an admin.'

def test_check_non_admin_user(self):

    req = request.Request.blank('/')
    req.context = context.RequestContext(is_admin=False)
    req.context_dict['is_admin'] = False
    req.context_dict['token_id'] = uuid.uuid4().hex
    self.controller._is_admin(req)
