def test_fallback(self): logger = get_logger(None) assert logger.name == 'root'
def test_string(self): logger = get_logger('test123') assert logger.name == 'test123'
def test_class(self): logger = get_logger(TestClass) assert logger.name == 'barbeque.tests.test_logging.TestClass'
def test_method_bound(self): logger = get_logger(TestClass().test) assert logger.name == 'barbeque.tests.test_logging.TestClass.test'
def test_function(self): logger = get_logger(test_func) assert logger.name == 'barbeque.tests.test_logging.test_func'