class_docstr: Tests for rule_promotion/publisher.py:StatsPublisher
class_docstr_tok: ["Tests","for","rule_promotion\/publisher.py",":","StatsPublisher"]
docstr: StatsPublisher - Format Digest
docstr_tok: ["StatsPublisher","-","Format","Digest"]
code: def test_format_digest(self):
      """StatsPublisher - Format Digest"""
      expected_digest = """\u25E6 test_rule_1
  	- 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:					2
  	- Alert Info:					n/a
  
  \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"""
      stats = list(self._get_fake_stats())
      digest = self.publisher._format_digest(stats)
      assert_equal(digest, expected_digest)
  
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 6 for calling the TestStatsPublisher obj's underlying member method code with example usage: obj.test_format_digest() without return types