class_docstr: Tests for shared/rule_table.py
docstr: Rule Table - Delete New Rules
docstr_tok: ["Rule","Table","-","Delete","New","Rules"]
code: def test_delete_old_rules(self):
      """Rule Table - Delete New Rules"""
      # Create 2 local rules and add them to the table
      original_count = 2
      self._create_local_rules(original_count)
      self.rule_table._add_new_rules()
  
      # Delete a local rule from the tracking dictionary
      del rule_module.Rule._rules["fake_rule_01"]
  
      # Ensure the remote state is updated for the deletion of a rule
      self.rule_table._del_old_rules()
      assert_equal(
          len(self.rule_table._load_remote_state()), original_count - 1
      )
  
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 13 for calling the TestRuleTable obj's underlying member method code with example usage: obj.test_delete_old_rules() without return types