(self, provider)
validate provider, whether we have integrated requested provider or not.

        :param provider: notification Provider.
        :return: provider class Instance (if provider is valid)
validate provider, whether we have integrated requested provider or not.
validate provider whether we have integrated requested provider or not .
def _validate_provider(self, provider):
        """validate provider, whether we have integrated requested provider or not.

        :param provider: notification Provider.
        :return: provider class Instance (if provider is valid)
        """
        provider_app_path = settings.PROVIDER_APP_CLASS_PATH.format(provider)
        try:
            return locate(provider_app_path)  # import provider app dynamically
        except ImportError:
            raise ValueError('Invalid provider {0} selected'.format(provider))
def _validate_provider ( self , provider ) : provider_app_path = settings . PROVIDER_APP_CLASS_PATH . format ( provider ) try : return locate ( provider_app_path ) # import provider app dynamically except ImportError : raise ValueError ( 'Invalid provider {0} selected' . format ( provider ) )