コード例 #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")
コード例 #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")
コード例 #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")
コード例 #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")
コード例 #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')
コード例 #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')
コード例 #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')
コード例 #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')