text: # -*- coding: utf-8 -*-
  from zerver.lib.test_classes import WebhookTestCase
  
  class AirbrakeHookTests(WebhookTestCase):
      STREAM_NAME = 'airbrake'
      URL_TEMPLATE = u"/api/v1/external/airbrake?stream={stream}&api_key={api_key}"
      FIXTURE_DIR_NAME = 'airbrake'
  
      def test_airbrake_error_message(self) -> None:
          expected_topic = u"YakklIntegrationTest"
          expected_message = u"[ZeroDivisionError](https://yakkl.airbrake.io/projects/125209/groups/1705190192091077626): \"Error message from logger\" occurred."
          self.send_and_test_stream_message('error_message', expected_topic, expected_message)
  