def METHOD_NAME(zbx_host, zbx_key, expected_data):
    try:
        rule = {
            'name': 'Basic Zabbix test',
            'type': 'any',
            'alert_text_type': 'alert_text_only',
            'alert': [],
            'alert_subject': 'Test Zabbix'
        }
        if zbx_host:
            rule['zbx_host'] = zbx_host
        if zbx_key:
            rule['zbx_key'] = zbx_key
        rules_loader = FileRulesLoader({})
        rules_loader.load_modules(rule)
        alert = ZabbixAlerter(rule)
        actual_data = alert.get_info()
        assert expected_data == actual_data
    except Exception as ea:
        assert expected_data in str(ea)