CloudBender/tests/test_utils.py
2019-02-07 22:05:33 +00:00

16 lines
375 B
Python

#!/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)