'Exception raised with invalid `interface`.'

def test_validate_endpoint_create_fails_with_invalid_interface(self):

    request_to_validate = {'interface': uuid.uuid4().hex, 'service_id': uuid.uuid4().hex, 'url': 'https://service.example.com:5000/'}
    self.assertRaises(exception.SchemaValidationError, self.create_endpoint_validator.validate, request_to_validate)
