class_docstr: Tests for rule_promotion/publisher.py:StatsPublisher
class_docstr_tok: ["Tests","for","rule_promotion\/publisher.py",":","StatsPublisher"]
docstr: StatsPublisher - Format SNS Topic, Hard-Coded
docstr_tok: ["StatsPublisher","-","Format","SNS","Topic",",","Hard-Coded"]
code: def test_formatted_sns_topic_arn_hard_coded(self):
      """StatsPublisher - Format SNS Topic, Hard-Coded"""
      test_config = {
          "global": {
              "account": {
                  "aws_account_id": "123456789012",
                  "prefix": "unit-test",
                  "region": "us-east-1",
              }
          },
          "lambda": {
              "rule_promotion_config": {
                  "digest_sns_topic": "foobar"  # should use digest_sns_topic here
              }
          },
      }
      topic = self.publisher.formatted_sns_topic_arn(test_config)
      assert_equal(topic, "arn:aws:sns:us-east-1:123456789012:foobar")
  
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 4 for calling the TestStatsPublisher obj's underlying member method code with example usage: obj.test_formatted_sns_topic_arn_hard_coded() without return types