class_docstr: Tests for rule_promotion/publisher.py:StatsPublisher
class_docstr_tok: ["Tests","for","rule_promotion\/publisher.py",":","StatsPublisher"]
docstr: StatsPublisher - Publish, False
docstr_tok: ["StatsPublisher","-","Publish",",","False"]
code: def test_publish(self, query_mock, publish_mock):
      """StatsPublisher - Publish, False"""
      query_mock.return_value = "fake-id"
      stats = list(self._get_fake_stats(count=1))
      self.publisher.publish(stats)
      publish_mock.assert_called_with(stats)
  
file_path: streamalert/tests/unit/streamalert/rule_promotion/test_publisher.py
imports: from datetime import datetime, timedelta
  from mock import patch, PropertyMock
  from nose.tools import assert_equal, assert_raises
  from streamalert.rule_promotion.publisher import StatsPublisher
  from streamalert.rule_promotion.statistic import StagingStatistic
  from streamalert.shared import athena, config
label_desc: Use image node_id 11 for calling the TestStatsPublisher obj's underlying member method code with example usage: obj.test_publish(query_mock, publish_mock) without return types