def test_does_not_validate_invalid_postcode(self):
    self.assertRaises(DataDoesNotMatchSchemaException, postcode_validator.validate, 'sausages')
    self.assertRaises(DataDoesNotMatchSchemaException, postcode_validator.validate, '')
    self.assertRaises(DataDoesNotMatchSchemaException, postcode_validator.validate, 123)
def test_does_not_validate_invalid_postcode(self):
    self.assertRaises(DataDoesNotMatchSchemaException, postcode_validator.validate, 'sausages')
    self.assertRaises(DataDoesNotMatchSchemaException, postcode_validator.validate, )
    self.assertRaises(DataDoesNotMatchSchemaException, postcode_validator.validate, 123)