class_docstr: Tests for rule_promotion/promoter.py:RulePromoter
docstr: RulePromoter - Promote Rules
docstr_tok: ["RulePromoter","-","Promote","Rules"]
code: def test_promote_rules(self, log_mock):
      """RulePromoter - Promote Rules"""
      self.promoter._staging_stats["test_rule"].alert_count = 0
      self.promoter._current_time = self.promoter._staging_stats[
          "test_rule"
      ].staged_until + timedelta(hours=1)
  
      self.promoter._promote_rules()
      log_mock.assert_called_with(
          "Promoting rule '%s' at %s",
          "test_rule",
          datetime(2000, 1, 3, 2, 0, 1),
      )
  
imports: from datetime import datetime, timedelta
  import os
  from boto3 import client
  from mock import Mock, patch, PropertyMock
  from moto import mock_dynamodb2
  from nose.tools import assert_equal
  from streamalert.rule_promotion.promoter import RulePromoter
  from streamalert.rule_promotion.statistic import StagingStatistic
  from streamalert.shared import config, rule
  from tests.unit.helpers.aws_mocks import MockAthenaClient, setup_mock_rules_table
label_desc: Use image node_id 12 for calling the TestRulePromoter obj's underlying member method code with example usage: obj.test_promote_rules(log_mock) without return types