class_docstr: Tests for shared/rule_table.py
docstr: Rule Table - Toggle Staging, Nonexistent Rule
docstr_tok: ["Rule","Table","-","Toggle","Staging",",","Nonexistent","Rule"]
code: def test_toggle_staged_state_nonexistent(self, log_mock):
      """Rule Table - Toggle Staging, Nonexistent Rule"""
      rule_name = "bad_rule"
  
      # Try to toggle the state of the non-existent rule to staged
      self.rule_table.toggle_staged_state(rule_name, True)
      log_mock.assert_called_with(
          "Staging status for rule '%s' cannot be set to %s; rule does not exist",
          rule_name,
          True,
      )
  
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 23 for calling the TestRuleTable obj's underlying member method code with example usage: obj.test_toggle_staged_state_nonexistent(log_mock) without return types