示例#1
0
 def test_telephone_too_long_end(self):
     telephone = "010-858589111"
     self.assertFalse(hutils.is_telephone(telephone))
示例#2
0
 def test_telephone_too_short_end(self):
     telephone = "010-858589"
     self.assertFalse(hutils.is_telephone(telephone))
示例#3
0
 def test_telephone_too_short_prefix(self):
     telephone = "01-85858999"
     self.assertFalse(hutils.is_telephone(telephone))
示例#4
0
 def test_telephone_too_long_prefix(self):
     telephone = "05111-858589991"
     self.assertFalse(hutils.is_telephone(telephone))
示例#5
0
 def test_telephone_success_2(self):
     telephone = "010-85858909"
     self.assertTrue(hutils.is_telephone(telephone))
示例#6
0
 def test_telephone_success(self):
     self.assertTrue(hutils.is_telephone("0510-85858999"))