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)
def test_bad3(self): self.num = NationalInsurance.check_ni_num("DF 35 09 01 C") correct_num = "" self.assertEqual( correct_num, self.num)
def test_bad2(self): self.num = NationalInsurance.check_ni_num("AO 45 32 21 A") correct_num = "" self.assertEqual( correct_num, self.num)
def test_bad1(self): self.num = NationalInsurance.check_ni_num("AF 78 99 20 D") correct_num = "" self.assertEqual( correct_num, self.num)
def test_vbad0(self): self.num = NationalInsurance.check_ni_num("98675^$4hbnjk") correct_num = "" self.assertEqual( correct_num, self.num)
def setUp(self): self.num = NationalInsurance.check_ni_num("")