示例#1
0
文件: test.py 项目: koansys/lorem
 def test_phone_paren(self):
     self.assertEqual(t.number("(202) 555-1212"), '(242) 285-1414')
示例#2
0
文件: test.py 项目: koansys/lorem
 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
文件: test.py 项目: koansys/lorem
 def test_phone_dash(self):
     self.assertEqual(t.number("202-555-1212"), '104-602-3763')
示例#4
0
文件: test.py 项目: koansys/lorem
 def test_ssn(self):
     self.assertEqual(t.number("123-45-6789"), '405-92-2523')
示例#5
0
文件: test.py 项目: koansys/lorem
 def test_no_punc(self):
     self.assertEqual(t.number("42"), '21')
示例#6
0
文件: test.py 项目: koansys/lorem
 def test_empty(self):
     self.assertEqual(t.number(""), '')