示例#1
0
 def test_backlog(self):
     databaselog.info("message %s", 1)
     databaselog.debug("message %s", 2)
     self.log_filter.reset_records()
     databaselog.print_old_log_entries()
     # should have 3 log entries, 1 header, 1 footer, and the 1 for the
     # info message
     self.check_db_logs(3)
示例#2
0
 def test_backlog(self):
     databaselog.info("message %s", 1)
     databaselog.debug("message %s", 2)
     self.log_filter.reset_records()
     databaselog.print_old_log_entries()
     # should have 3 log entries, 1 header, 1 footer, and the 1 for the
     # info message
     self.check_db_logs(3)
示例#3
0
 def test_warning_logged(self):
     databaselog.info("message %s", 1)
     databaselog.debug("message %s", 2)
     self.check_db_logs(2)
示例#4
0
 def test_warning_logged(self):
     databaselog.info("message %s", 1)
     databaselog.debug("message %s", 2)
     self.check_db_logs(2)
示例#5
0
 def test_warning_logged(self):
     self.log_filter.allow = True
     databaselog.info("message %s", 1)
     databaselog.debug("message %s", 2)
     self.check_records(2)