Ejemplo 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()
Ejemplo 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("+")
Ejemplo 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()