def METHOD_NAME(smpp_sms_provider):
    smpp_sms_provider.port = "29999"
    with pytest.raises(ProviderNotAvailable) as ex:
        smpp_sms_provider._submitMessage("987654", "Hello world")
    assert "Failed to connect to server" in str(ex)