Exemplo n.º 1
0
 def test_get_debug_level_upper(self):
     """test get_debug_level() with upper case string argument."""
     self.assertEqual(logging.DEBUG, _main.get_logging_level_from('DEBUG'))
     self.assertEqual(logging.INFO, _main.get_logging_level_from('INFO'))
Exemplo n.º 2
0
 def test_get_debug_level_invalid(self):
     """test get_debug_level() with invalid string argument."""
     self.assertEqual(logging.INFO, _main.get_logging_level_from('HOGE'))
Exemplo n.º 3
0
 def test_get_debug_level_lower(self):
     """test get_debug_level() with lower case string argument."""
     self.assertEqual(logging.DEBUG, _main.get_logging_level_from('debug'))
     self.assertEqual(logging.INFO, _main.get_logging_level_from('info'))