Exemplo n.º 1
0
 def test_set_logging_level(self):
     self.assertEqual(logging.DEBUG, opsdroid.get_logging_level('debug'))
     self.assertEqual(logging.INFO, opsdroid.get_logging_level('info'))
     self.assertEqual(logging.WARNING,
                      opsdroid.get_logging_level('warning'))
     self.assertEqual(logging.ERROR, opsdroid.get_logging_level('error'))
     self.assertEqual(logging.CRITICAL,
                      opsdroid.get_logging_level('critical'))
     self.assertEqual(logging.INFO, opsdroid.get_logging_level(''))
Exemplo n.º 2
0
 def test_set_logging_level(self):
     self.assertEqual(logging.DEBUG,
                      opsdroid.get_logging_level('debug'))
     self.assertEqual(logging.INFO,
                      opsdroid.get_logging_level('info'))
     self.assertEqual(logging.WARNING,
                      opsdroid.get_logging_level('warning'))
     self.assertEqual(logging.ERROR,
                      opsdroid.get_logging_level('error'))
     self.assertEqual(logging.CRITICAL,
                      opsdroid.get_logging_level('critical'))
     self.assertEqual(logging.INFO,
                      opsdroid.get_logging_level(''))