class_docstr: Tests for shared/rule_table.py
docstr: Helper to create a fake local rule with specified name
code: def _create_local_rule_with_name(name):
      """Helper to create a fake local rule with specified name"""
      rule_module.Rule(Mock(__name__=name), logs=["fake_log_type"])
  
imports: from datetime import datetime
  import os
  from io import StringIO
  from botocore.exceptions import ClientError
  from mock import Mock, patch
  from moto import mock_dynamodb2
  from nose.tools import assert_equal, assert_not_equal, assert_raises
  from streamalert.shared import rule, rule_table
  from tests.unit.helpers.aws_mocks import setup_mock_rules_table
label_desc: Use image node_id 4 for calling the TestRuleTable obj's underlying member method code with example usage: obj._create_local_rule_with_name(name) without return types