Пример #1
0
 def test_phone_paren(self):
     self.assertEqual(t.number("(202) 555-1212"), '(242) 285-1414')
Пример #2
0
 def test_long(self):
     self.assertEqual(t.number("202-555-1212_202-555-1212_202-555"),
                      '284-902-3455_113-703-3306_045-647')
Пример #3
0
 def test_phone_dash(self):
     self.assertEqual(t.number("202-555-1212"), '104-602-3763')
Пример #4
0
 def test_ssn(self):
     self.assertEqual(t.number("123-45-6789"), '405-92-2523')
Пример #5
0
 def test_no_punc(self):
     self.assertEqual(t.number("42"), '21')
Пример #6
0
 def test_empty(self):
     self.assertEqual(t.number(""), '')