def test_good7(self): self.code = PostCode.check_code("M1 1AA") correct_code = "M1 1AA" self.assertEqual( correct_code, self.code)
def test_good8(self): self.code = PostCode.check_code("B33 8TH") correct_code = "B33 8TH" self.assertEqual( correct_code, self.code)
def test_good5(self): self.code = PostCode.check_code("EC1A 1BB") correct_code = "EC1A 1BB" self.assertEqual( correct_code, self.code)
def test_vgood6(self): self.code = PostCode.check_code("W1A 1HQ") correct_code = "W1A 1HQ" self.assertEqual( correct_code, self.code)
def test_good4(self): self.code = PostCode.check_code("TE32 6UP") correct_code = "TE32 6UP" self.assertEqual( correct_code, self.code)
def test_bad2(self): self.code = PostCode.check_code("te326up") correct_code = "TE32 6UP" self.assertEqual( correct_code, self.code)
def test_bad1(self): self.code = PostCode.check_code("23590165") correct_code = "" self.assertEqual( correct_code, self.code)
def test_vbad0(self): self.code = PostCode.check_code("oty46£") correct_code = "" self.assertEqual( correct_code, self.code)
def setUp(self): self.code = PostCode.check_code("")