class_docstr: TestRule class
class_docstr_tok: ["TestRule","class"]
docstr: Rule - String Representation
docstr_tok: ["Rule","-","String","Representation"]
code: def test_rule_to_string(self):
      """Rule - String Representation"""
  
      def test_rule(_):
          pass
  
      test_rule = rule.Rule(test_rule, outputs=["foo"], logs=["bar"])
      assert_equal(
          str(test_rule),
          "<Rule: test_rule; outputs: ['foo']; disabled: False>",
      )
      assert_equal(
          repr(test_rule),
          "<Rule: test_rule; outputs: ['foo']; disabled: False>",
      )
  
imports: import hashlib
  from mock import patch
  from nose.tools import assert_equal, assert_true, raises
  from streamalert.shared import rule, rule_table
label_desc: Use image node_id 8 for calling the TestRule obj's underlying member method code with example usage: obj.test_rule_to_string() without return types