def test_can_validate_postcode(self):
    try:
        postcode_validator.validate('WC2B6SE')
        postcode_validator.validate('wc2b6se')
        postcode_validator.validate('wc2b 6se')
        postcode_validator.validate('Wc2b  6se')
    except DataDoesNotMatchSchemaException as e:
        self.fail(('Could not validate postcode: ' + repr(e)))
def test_can_validate_postcode(self):
    try:
        postcode_validator.validate('WC2B6SE')
        postcode_validator.validate('wc2b6se')
        postcode_validator.validate('wc2b 6se')
        postcode_validator.validate('Wc2b  6se')
    except DataDoesNotMatchSchemaException as e:
        self.fail(('Could not validate postcode: ' + repr(e)))