1
0
libpurple-to-markdown/test/test_synctech_sms.py
2024-11-03 17:15:03 +01:00

16 lines
753 B
Python

from libpurple_to_markdown import synctech_sms
def test_normalize_phone_number():
assert synctech_sms.normalize_phone_number('+45 12 34 56 78') == '+4512345678'
assert synctech_sms.normalize_phone_number('+4512345678') == '+4512345678'
assert synctech_sms.normalize_phone_number('4512345678') == '+4512345678'
assert synctech_sms.normalize_phone_number('12345678') == '+4512345678'
assert synctech_sms.normalize_phone_number('12 34 56 78') == '+4512345678'
assert synctech_sms.normalize_phone_number('441234567890') == '+441234567890'
assert synctech_sms.normalize_phone_number('004712345678') == '+4712345678'
def test_dont_normalize_weird():
assert synctech_sms.normalize_phone_number('Midttrafik') == 'Midttrafik'