Exemple #1
0
 def test_fallback(self):
     logger = get_logger(None)
     assert logger.name == 'root'
Exemple #2
0
 def test_string(self):
     logger = get_logger('test123')
     assert logger.name == 'test123'
Exemple #3
0
 def test_class(self):
     logger = get_logger(TestClass)
     assert logger.name == 'barbeque.tests.test_logging.TestClass'
Exemple #4
0
 def test_method_bound(self):
     logger = get_logger(TestClass().test)
     assert logger.name == 'barbeque.tests.test_logging.TestClass.test'
Exemple #5
0
 def test_function(self):
     logger = get_logger(test_func)
     assert logger.name == 'barbeque.tests.test_logging.test_func'