(self, notification_type)
validate notification_type, whether we have service of requested notification_type or not.

        :param notification_type: notification type (email, sms, push).
validate notification_type, whether we have service of requested notification_type or not.
validate notification_type whether we have service of requested notification_type or not .
def _validate_notification_type(self, notification_type):
        """validate notification_type, whether we have service of requested notification_type or not.

        :param notification_type: notification type (email, sms, push).
        """
        if notification_type not in settings.ALLOWED_SERVICES:
            raise ValueError('Invalid notification type. Valid values are {0}.'.format(settings.ALLOWED_SERVICES))
def _validate_notification_type ( self , notification_type ) : if notification_type not in settings . ALLOWED_SERVICES : raise ValueError ( 'Invalid notification type. Valid values are {0}.' . format ( settings . ALLOWED_SERVICES ) )