def METHOD_NAME(caplog):
    caplog.set_level(logging.INFO)
    rule = {
        'name': 'Test Rule',
        'type': 'any',
        'alert_subject': 'Cool subject',
        'twilio_account_sid': 'xxxxx1',
        'twilio_auth_token': 'xxxxx2',
        'twilio_to_number': 'xxxxx3',
        'twilio_message_service_sid': 'xxxxx5',
        'twilio_use_copilot': True,
        'alert': []
    }
    match = {
        '@timestamp': '2021-01-10T00:00:00',
        'sender_ip': '1.1.1.1',
        'hostname': 'aProbe'
    }
    rules_loader = FileRulesLoader({})
    rules_loader.load_modules(rule)
    with mock.patch('elastalert.alerters.twilio.TwilioClient.messages') as mock_twilio:
        mock_twilio.messages.create()
        mock_twilio.return_value = 200
        alert = TwilioAlerter(rule)
        alert.alert([match])
        expected = [
             mock.call.messages.create(),
             mock.call.create(body='Test Rule', messaging_service_sid='xxxxx5', to='xxxxx3'),
        ]
        assert mock_twilio.mock_calls == expected
        assert ('elastalert', logging.INFO, 'Trigger sent to Twilio') == caplog.record_tuples[0]