class_docstr: Test class for KomandOutput
docstr: Setup before each method
docstr_tok: ["Setup","before","each","method"]
code: def setup(self, provider_constructor):
      """Setup before each method"""
      provider = MagicMock()
      provider_constructor.return_value = provider
      provider.load_credentials = Mock(
          side_effect=lambda x: self.CREDS
          if x == self.DESCRIPTOR
          else None
      )
      self._provider = provider
      self._dispatcher = KomandOutput(None)
  
file_path: streamalert/tests/unit/streamalert/alert_processor/outputs/test_komand.py
imports: from mock import patch, Mock, MagicMock
  from nose.tools import assert_false, assert_true
  from streamalert.alert_processor.outputs.komand import KomandOutput
  from tests.unit.streamalert.alert_processor.helpers import get_alert
label_desc: Use image node_id 1 for calling the TestKomandutput obj's underlying member method code with example usage: obj.setup(provider_constructor) without return types