Example #1
0
 def test_KY11112_is_valid(self):
     test_code = "KY11112"
     self.assertTrue(validate_post_code(test_code))
Example #2
0
 def test_B338_TH_invalid(self):
     test_code = "B338 TH"
     self.assertFalse(validate_post_code(test_code))
Example #3
0
 def test_DN55__1PT_invalid(self):
     test_code = "DN55-1PT"
     self.assertFalse(validate_post_code(test_code))
Example #4
0
 def test_W1A_AX_invalid(self):
     test_code = "W1A AX"
     self.assertFalse(validate_post_code(test_code))
Example #5
0
 def test_VG1_invalid(self):
     test_code = "VG1"
     self.assertFalse(validate_post_code(test_code))
Example #6
0
 def test_DN551PT_is_valid(self):
     test_code = "DN551PT"
     self.assertTrue(validate_post_code(test_code))
Example #7
0
 def test_EC1A_1BB_is_valid(self):
     test_code = "EC1A 1BB"
     self.assertTrue(validate_post_code(test_code))
Example #8
0
 def test_PCRN1ZZ_is_valid(self):
     test_code = "PCRN1ZZ"
     self.assertTrue(validate_post_code(test_code))
Example #9
0
 def test_PCRN___1ZZ_invalid(self):
     test_code = "PCRN  1ZZ"
     self.assertFalse(validate_post_code(test_code))
Example #10
0
 def test_KY3___2501_invalid(self):
     test_code = "KY3  2501"
     self.assertFalse(validate_post_code(test_code))
Example #11
0
 def test_M11AE_is_valid(self):
     test_code = "M11AE"
     self.assertTrue(validate_post_code(test_code))
Example #12
0
 def test_KY32501_is_valid(self):
     test_code = "KY32501"
     self.assertTrue(validate_post_code(test_code))
Example #13
0
 def test_W1A0AX_is_valid(self):
     test_code = "W1A0AX"
     self.assertTrue(validate_post_code(test_code))
Example #14
0
 def test_KY1___1112_invalid(self):
     test_code = "KY1  1112"
     self.assertFalse(validate_post_code(test_code))
Example #15
0
 def test_CR26XH_is_valid(self):
     test_code = "CR26XH"
     self.assertTrue(validate_post_code(test_code))
Example #16
0
 def test_SIQQ__1ZZ_is_valid(self):
     test_code = "SIQQ-1ZZ"
     self.assertTrue(validate_post_code(test_code))
Example #17
0
 def test_TKCA___1ZZ_invalid(self):
     test_code = "TKCA   1ZZ"
     self.assertFalse(validate_post_code(test_code))
Example #18
0
 def test_B338TH_is_valid(self):
     test_code = "B338TH"
     self.assertTrue(validate_post_code(test_code))
Example #19
0
 def test_EC1A_BBB_invalid(self):
     test_code = "EC1A BBB"
     self.assertFalse(validate_post_code(test_code))
Example #20
0
 def test_STHL1ZZ_is_valid(self):
     test_code = "STHL1ZZ"
     self.assertTrue(validate_post_code(test_code))
Example #21
0
 def test_VG___1160_invalid(self):
     test_code = "VG   1160"
     self.assertFalse(validate_post_code(test_code))
Example #22
0
 def test_STHL___1ZZ_invalid(self):
     test_code = "STHL   1ZZ"
     self.assertFalse(validate_post_code(test_code))
Example #23
0
 def test_VG____11_is_valid(self):
     test_code = "VG   11"
     self.assertTrue(validate_post_code(test_code))
Example #24
0
 def test_TDCU__1ZZ_is_valid(self):
     test_code = "TDCU-1ZZ"
     self.assertTrue(validate_post_code(test_code))
Example #25
0
 def test_M1_AE_invalid(self):
     test_code = "M1 AE"
     self.assertFalse(validate_post_code(test_code))
Example #26
0
 def test_TDCU1ZZ_invalid(self):
     test_code = "TDCU1ZZ"
     self.assertTrue(validate_post_code(test_code))
Example #27
0
 def test_CR26_XH_invalid(self):
     test_code = "CR26 XH"
     self.assertFalse(validate_post_code(test_code))
Example #28
0
 def test_TKCA1ZZ_is_valid(self):
     test_code = "TKCA1ZZ"
     self.assertTrue(validate_post_code(test_code))
Example #29
0
 def test_AI2640_is_valid(self):
     test_code = "AI2640"
     self.assertTrue(validate_post_code(test_code))
Example #30
0
 def test_KY1__1508_is_valid(self):
     test_code = "KY1 1508"
     self.assertTrue(validate_post_code(test_code))