Esempio n. 1
0
 def test_clean_from_is_digit(self):
     """ Make sure our from number is all digits except for the first char """
     clean_from = sms._clean_phone_number(self.from_number, True)
     assert clean_from[1:].isdigit()
Esempio n. 2
0
 def test_from_number_starts_with_plus(self):
     """ Ensure our from number begins with a + """
     clean_from = sms._clean_phone_number(self.from_number, True)
     assert clean_from.startswith("+")
Esempio n. 3
0
 def test_clean_to_is_digit(self):
     """ Make sure our to number contains only digits """
     clean_to = sms._clean_phone_number(self.to)
     assert clean_to.isdigit()