'Validate invalid email address.
Test that an exception is raised when validating improperly
formatted email addresses.'

def test_create_entity_with_invalid_email_fails(self):

    request_to_validate = {'name': self.resource_name, 'email': 'some    invalid    email    value'}
    self.assertRaises(exception.SchemaValidationError, self.create_schema_validator.validate, request_to_validate)
