def test_detect_international_phone_numbers(phone_number): assert is_uk_phone_number(phone_number) is False
def test_detect_uk_phone_numbers(phone_number): assert is_uk_phone_number(phone_number) is True
def get_sms_reply_to_for_notify_service(recipient, template): if not is_uk_phone_number(recipient) and use_numeric_sender(recipient): reply_to = current_app.config['NOTIFY_INTERNATIONAL_SMS_SENDER'] else: reply_to = template.service.get_default_sms_sender() return reply_to