def test_KY11112_is_valid(self): test_code = "KY11112" self.assertTrue(validate_post_code(test_code))
def test_B338_TH_invalid(self): test_code = "B338 TH" self.assertFalse(validate_post_code(test_code))
def test_DN55__1PT_invalid(self): test_code = "DN55-1PT" self.assertFalse(validate_post_code(test_code))
def test_W1A_AX_invalid(self): test_code = "W1A AX" self.assertFalse(validate_post_code(test_code))
def test_VG1_invalid(self): test_code = "VG1" self.assertFalse(validate_post_code(test_code))
def test_DN551PT_is_valid(self): test_code = "DN551PT" self.assertTrue(validate_post_code(test_code))
def test_EC1A_1BB_is_valid(self): test_code = "EC1A 1BB" self.assertTrue(validate_post_code(test_code))
def test_PCRN1ZZ_is_valid(self): test_code = "PCRN1ZZ" self.assertTrue(validate_post_code(test_code))
def test_PCRN___1ZZ_invalid(self): test_code = "PCRN 1ZZ" self.assertFalse(validate_post_code(test_code))
def test_KY3___2501_invalid(self): test_code = "KY3 2501" self.assertFalse(validate_post_code(test_code))
def test_M11AE_is_valid(self): test_code = "M11AE" self.assertTrue(validate_post_code(test_code))
def test_KY32501_is_valid(self): test_code = "KY32501" self.assertTrue(validate_post_code(test_code))
def test_W1A0AX_is_valid(self): test_code = "W1A0AX" self.assertTrue(validate_post_code(test_code))
def test_KY1___1112_invalid(self): test_code = "KY1 1112" self.assertFalse(validate_post_code(test_code))
def test_CR26XH_is_valid(self): test_code = "CR26XH" self.assertTrue(validate_post_code(test_code))
def test_SIQQ__1ZZ_is_valid(self): test_code = "SIQQ-1ZZ" self.assertTrue(validate_post_code(test_code))
def test_TKCA___1ZZ_invalid(self): test_code = "TKCA 1ZZ" self.assertFalse(validate_post_code(test_code))
def test_B338TH_is_valid(self): test_code = "B338TH" self.assertTrue(validate_post_code(test_code))
def test_EC1A_BBB_invalid(self): test_code = "EC1A BBB" self.assertFalse(validate_post_code(test_code))
def test_STHL1ZZ_is_valid(self): test_code = "STHL1ZZ" self.assertTrue(validate_post_code(test_code))
def test_VG___1160_invalid(self): test_code = "VG 1160" self.assertFalse(validate_post_code(test_code))
def test_STHL___1ZZ_invalid(self): test_code = "STHL 1ZZ" self.assertFalse(validate_post_code(test_code))
def test_VG____11_is_valid(self): test_code = "VG 11" self.assertTrue(validate_post_code(test_code))
def test_TDCU__1ZZ_is_valid(self): test_code = "TDCU-1ZZ" self.assertTrue(validate_post_code(test_code))
def test_M1_AE_invalid(self): test_code = "M1 AE" self.assertFalse(validate_post_code(test_code))
def test_TDCU1ZZ_invalid(self): test_code = "TDCU1ZZ" self.assertTrue(validate_post_code(test_code))
def test_CR26_XH_invalid(self): test_code = "CR26 XH" self.assertFalse(validate_post_code(test_code))
def test_TKCA1ZZ_is_valid(self): test_code = "TKCA1ZZ" self.assertTrue(validate_post_code(test_code))
def test_AI2640_is_valid(self): test_code = "AI2640" self.assertTrue(validate_post_code(test_code))
def test_KY1__1508_is_valid(self): test_code = "KY1 1508" self.assertTrue(validate_post_code(test_code))