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