CloudBender/tests/test_utils.py

16 lines
375 B
Python
Raw Normal View History

#!/usr/bin/python
import logging
from cloudbender.utils import setup_logging
def test_setup_logging_debug():
logger = setup_logging(True)
assert logger.getEffectiveLevel() == logging.DEBUG
assert logging.getLogger("botocore").getEffectiveLevel() == \
logging.INFO
# Silence logging for the rest of the tests
logger.setLevel(logging.CRITICAL)