コード例 #1
0
 def test_vgood7(self):
   self.num = NationalInsurance.check_ni_num("HY 43 90 21 D")
   correct_num = "HY 43 90 21 D"
   self.assertEqual( correct_num, self.num)
コード例 #2
0
 def test_bad3(self):
   self.num = NationalInsurance.check_ni_num("DF 35 09 01 C")
   correct_num = ""
   self.assertEqual( correct_num, self.num)
コード例 #3
0
 def test_bad2(self):
   self.num = NationalInsurance.check_ni_num("AO 45 32 21 A")
   correct_num = ""
   self.assertEqual( correct_num, self.num)
コード例 #4
0
 def test_bad1(self):
   self.num = NationalInsurance.check_ni_num("AF 78 99 20 D")
   correct_num = ""
   self.assertEqual( correct_num, self.num)
コード例 #5
0
 def test_vbad0(self):
   self.num = NationalInsurance.check_ni_num("98675^$4hbnjk")
   correct_num = ""
   self.assertEqual( correct_num, self.num)
コード例 #6
0
 def setUp(self):
   self.num = NationalInsurance.check_ni_num("")