Exemplo n.º 1
0
 def test_parse_log_level_set_ing(self):
     self.assertIs(parse_log_level("[INF]: File deleted"),
                   LogLevel.Info,
                   msg="The Log level is incorrect")
Exemplo n.º 2
0
 def test_parse_log_level_set_err(self):
     self.assertIs(parse_log_level("[ERR]: Some Random Log"),
                   LogLevel.Error,
                   msg="The Log level is incorrect")
Exemplo n.º 3
0
 def test_parse_log_level_set_xyz(self):
     self.assertIs(parse_log_level("[XYZ]: Some Random Log"),
                   LogLevel.Unknown,
                   msg="The Log level is incorrect")
Exemplo n.º 4
0
 def test_parse_log_level_set_wrn(self):
     self.assertIs(parse_log_level("[WRN]: File is being overwritten"),
                   LogLevel.Warning,
                   msg="The Log level is incorrect")
Exemplo n.º 5
0
 def test_parse_log_level_set_ing(self):
     self.assertIs(parse_log_level('[INF]: File deleted'),
                   LogLevel.INFO,
                   msg='The Log level is incorrect')
Exemplo n.º 6
0
 def test_parse_log_level_set_xyz(self):
     self.assertIs(parse_log_level('[XYZ]: Some Random Log'),
                   LogLevel.UNKNOWN,
                   msg='The Log level is incorrect')
Exemplo n.º 7
0
 def test_parse_log_level_set_err(self):
     self.assertIs(parse_log_level('[ERR]: Some Random Log'),
                   LogLevel.ERROR,
                   msg='The Log level is incorrect')
Exemplo n.º 8
0
 def test_parse_log_level_set_wrn(self):
     self.assertIs(parse_log_level('[WRN]: File is being overwritten'),
                   LogLevel.WARNING,
                   msg='The Log level is incorrect')