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)
def test_warning_logged(self): databaselog.info("message %s", 1) databaselog.debug("message %s", 2) self.check_db_logs(2)
def test_warning_logged(self): self.log_filter.allow = True databaselog.info("message %s", 1) databaselog.debug("message %s", 2) self.check_records(2)