class_docstr: Tests for rule_promotion/promoter.py:RulePromoter
docstr: RulePromoter - Update Alert Count
docstr_tok: ["RulePromoter","-","Update","Alert","Count"]
code: def test_update_alert_count(self, athena_mock):
      """RulePromoter - Update Alert Count"""
      athena_mock.return_value = [self._mock_athena_data()]
  
      self.promoter._update_alert_count()
  
      assert_equal(
          self.promoter._staging_stats["test_rule"].alert_count, 7
      )
      assert_equal(
          self.promoter._staging_stats["test_rule_2"].alert_count, 5
      )
  
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 8 for calling the TestRulePromoter obj's underlying member method code with example usage: obj.test_update_alert_count(athena_mock) without return types