def METHOD_NAME():
    with pytest.raises(EAException) as ea:
        rule = {
            'name': 'Test Rule',
            'type': 'any',
            'alert_subject': 'Cool subject',
            'exotel_account_sid': 'xxxxx1',
            'exotel_auth_token': 'xxxxx2',
            'exotel_to_number': 'xxxxx3',
            'exotel_from_number': 'xxxxx4',
            '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.exotel.Exotel.sms') as mock_exotel:
            mock_exotel.return_value = 201
            alert = ExotelAlerter(rule)
            alert.alert([match])
        assert 'Error posting to Exotel, response code is' in str(ea)