def test_SE1_postcode_districts_can_have_P_letter_after_digit(self): self.assertIsNone(validate_central_london_single_digit_district("SE1P 1BB"))
def test_SE1_postcode_districts_cannot_have_other_letters_than_P_after_digit(self): with self.assertRaises(InvalidCentralLondonSingleDigitDistrictValidationError): validate_central_london_single_digit_district("SE1A 1BB")
def test_valid_postcode(self): self.assertIsNone(validate_central_london_single_digit_district("EC1A 1BB"))