def METHOD_NAME(pagertree_integration_url, expected_data):
    try:
        rule = {
            'name': 'Test PagerTree Rule',
            'type': 'any',
            'alert': []
        }
        if pagertree_integration_url:
            rule['pagertree_integration_url'] = pagertree_integration_url
        rules_loader = FileRulesLoader({})
        rules_loader.load_modules(rule)
        alert = PagerTreeAlerter(rule)
        actual_data = alert.get_info()
        assert expected_data == actual_data
    except Exception as ea:
        assert expected_data in str(ea)