class_docstr: Tests for rule_promotion/statistic.py:StagingStatistic
docstr: StagingStatistic - Construct Compound Count Query
docstr_tok: ["StagingStatistic","-","Construct","Compound","Count","Query"]
code: def test_construct_compound_count_query(self):
      """StagingStatistic - Construct Compound Count Query"""
      query = StagingStatistic.construct_compound_count_query(
          [self.statistic, self.statistic]
      )
      expected_query = (
          "SELECT rule_name, count(*) AS count "
          "FROM alerts WHERE "
          "(dt >= '2000-01-01-01' AND rule_name = 'test_rule') OR "
          "(dt >= '2000-01-01-01' AND rule_name = 'test_rule') "
          "GROUP BY rule_name"
      )
  
      assert_equal(query, expected_query)
  
file_path: streamalert/tests/unit/streamalert/rule_promotion/test_statistic.py
imports: from datetime import datetime, timedelta
  import os
  from mock import patch
  from nose.tools import assert_equal
  from streamalert.rule_promotion.statistic import StagingStatistic
label_desc: Use image node_id 2 for calling the TestStagingStatistic obj's underlying member method code with example usage: obj.test_construct_compound_count_query() without return types