# -*- coding: utf-8 -*-
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
from . import testutils
if __name__ == "__main__":
import pkg5unittest
import logging
import os
import six
import sys
import unittest
# Enforce maximum logging level for informational messages.
# Log all warnings and above to stderr.
# Log some messages.
# Now verify that the expected output was received (DEBUG
# shouldn't be here due to log level).
"WARNING\nERROR\nCRITICAL\n")
# DEBUG should now be present in the info output.
# Reset logging and verify info_out, error_out are no longer
# set to receive messagse.
if __name__ == "__main__":