docstr: AlertPublisher - @Register - Works properly
docstr_tok: ["AlertPublisher","-","@","Register","-","Works","properly"]
code: def test_register_works_properly():
      """AlertPublisher - @Register - Works properly"""
      assert_true(
          AlertPublisherRepository.has_publisher(
              AlertPublisherRepository.get_publisher_name(
                  SamplePublisher1
              )
          )
      )
  
imports: from mock import patch
  from nose.tools import assert_true, assert_equal, assert_false
  from streamalert.alert_processor.helpers import _assemble_alert_publisher_for_output
  from streamalert.shared.publisher import AlertPublisherRepository, AlertPublisher, CompositePublisher, DefaultPublisher, Register, WrappedFunctionPublisher
  from tests.unit.streamalert.alert_processor.helpers import get_alert
label_desc: Use image node_id 1 for calling the TestRegister obj's underlying member method code with example usage: obj.test_register_works_properly() without return types