def test_case06(self): print("case06") tel = "!" act_disc = huiyuan_help.tel_disc(tel) exp_disc = 1 self.assertEqual(act_disc, exp_disc)
def test_case03(self): print("case03") tel = "13512345670" act_disc = huiyuan_help.tel_disc(tel) exp_disc = 1 self.assertEqual(act_disc, exp_disc)
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)
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)