def METHOD_NAME(
    self,
    alarm_json,
    expected_alarm_type,
    expected_alarm_severity,
    expected_alarm_text=None,
    expected_alarm_time=None,
):
    self.log.info(json.dumps(alarm_json, indent=4))
    self.assertThat(
        "actual == expected",
        actual=alarm_json["type"],
        expected=expected_alarm_type,
    )
    self.assertThat(
        "actual == expected",
        actual=alarm_json["severity"],
        expected=expected_alarm_severity,
    )
    self.assertThat(
        "actual == expected",
        actual=alarm_json["text"],
        expected=expected_alarm_text,
    )
    if expected_alarm_time:
        self.assertThat(
            "actual == expected",
            actual=alarm_json["type"],
            expected=expected_alarm_type,
        )