class_docstr: Tests for RulesEngine
class_docstr_tok: ["Tests","for","RulesEngine"]
docstr: RulesEngine - _configure_publishers, Invalid object
docstr_tok: ["RulesEngine","-","_configure_publishers",",","Invalid","object"]
code: def test_configure_publishers_single_invalid_object(self, log_error):
      """RulesEngine - _configure_publishers, Invalid object"""
      outputs = {"slack:test"}
      rule = Mock(
          outputs_set=outputs,
          publishers=self,  # just some random object that's not a publisher
      )
  
      publishers = self._rules_engine._configure_publishers(
          rule, outputs
      )
      expectation = {"slack:test": []}
  
      assert_equal(publishers, expectation)
      log_error.assert_called_with(
          "Invalid publisher argument: %s", self
      )
  
imports: from datetime import datetime, timedelta
  from mock import Mock, patch, PropertyMock
  from nose.tools import assert_equal, assert_false, assert_true
  from publishers.community.generic import remove_internal_fields
  from streamalert.shared.publisher import AlertPublisher, Register, DefaultPublisher
  import streamalert.rules_engine.rules_engine
  from streamalert.rules_engine.rules_engine import RulesEngine
label_desc: Use image node_id 36 for calling the TestRulesEngine obj's underlying member method code with example usage: obj.test_configure_publishers_single_invalid_object(log_error) without return types