class_docstr: Tests for shared/rule_table.py
docstr: Rule Table - Toggle Staging, Staged=False
docstr_tok: ["Rule","Table","-","Toggle","Staging",",","Staged=False"]
code: def test_toggle_staged_state_false(self):
      """Rule Table - Toggle Staging, Staged=False"""
      rule_name = "staged_rule"
      self._create_db_rule_with_name(rule_name, True)
  
      # Make sure the item that was added is staged
      item = self.rule_table._table.get_item(
          Key={"RuleName": rule_name}
      )
      assert_equal(item["Item"]["Staged"], True)
  
      # Try to toggle the state to unstaged
      self.rule_table.toggle_staged_state(rule_name, False)
  
      # Make sure the item is now unstaged
      item = self.rule_table._table.get_item(
          Key={"RuleName": rule_name}
      )
      assert_equal(item["Item"]["Staged"], False)
  
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 22 for calling the TestRuleTable obj's underlying member method code with example usage: obj.test_toggle_staged_state_false() without return types