def METHOD_NAME(
    self,
    mock_base,
    mock_request,
    mock_response,
    mock_session,
    mock_check_policy_pre,
    mock_TokenIterator,
    with_json,
):
    """
    call admin/show with/without argument tokeninfo_format
    and return if _parse_tokeninfo has been called
    """
    request_params = {
        "tokeninfo_format": with_json,
    }
    mock_check_policy_pre.return_value = {
        "active": False,
        "admin": "unittest",
    }
    tok = copy.deepcopy(self.token)
    mock_TokenIterator.return_value = [tok]
    flask.g.audit = {}
    admin = AdminController()
    mock_request.json = request_params
    admin.show()