class_docstr: Tests for rule_promotion/publisher.py:StatsPublisher
class_docstr_tok: ["Tests","for","rule_promotion\/publisher.py",":","StatsPublisher"]
docstr: StatsPublisher - Publish Message
docstr_tok: ["StatsPublisher","-","Publish","Message"]
code: def test_publish_message(self, boto_mock):
      """StatsPublisher - Publish Message"""
      self.publisher._publish_message(
          list(self._get_fake_stats(count=1))
      )
  
      args = {
          "Message": """\u25E6 test_rule_0
  	- Staged At:					2000-01-01 01:01:01 UTC
  	- Staged Until:					2000-01-03 01:01:01 UTC
  	- Remaining Stage Time:		1d 0h 0m
  	- Alert Count:					1
  	- Alert Info:					n/a""",
          "Subject": "Alert statistics for 1 staged rule(s) [2000-01-01 01:01:01 UTC]",
      }
      boto_mock.resource.return_value.Topic.return_value.publish.assert_called_with(
          **args
      )
  
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 10 for calling the TestStatsPublisher obj's underlying member method code with example usage: obj.test_publish_message(boto_mock) without return types