示例#1
0
 def test_case06(self):
     print("case06")
     tel = "!"
     act_disc = huiyuan_help.tel_disc(tel)
     exp_disc = 1
     self.assertEqual(act_disc, exp_disc)
示例#2
0
 def test_case03(self):
     print("case03")
     tel = "13512345670"
     act_disc = huiyuan_help.tel_disc(tel)
     exp_disc = 1
     self.assertEqual(act_disc, exp_disc)
示例#3
0
 def test_case04(self):
     print("case04")
     tel = "123"
     act_disc = huiyuan_help.tel_disc(tel)
     exp_disc = 0.9
     self.assertEqual(act_disc, exp_disc)
示例#4
0
 def test_case02(self):
     print("case02")
     tel = "13512345679"
     act_disc = huiyuan_help.tel_disc(tel)
     exp_disc = 0.9
     self.assertEqual(act_disc, exp_disc)