'An API request to create a container including environment
variables returns the environment mapping supplied in the request in
the response JSON.'

def test_create_container_with_environment_response(self):

    environment = {u'SITES_ENABLED_PATH': u'/etc/nginx/sites-enabled', u'CONFIG_FILE': u'/etc/nginx/nginx.conf'}
    container_json = {u'node_uuid': self.NODE_B, u'name': u'webserver', u'image': u'nginx', u'environment': environment}
    container_json_result = {u'node_uuid': self.NODE_B, u'name': u'webserver', u'image': u'nginx:latest', u'environment': environment, u'restart_policy': {u'name': u'never'}}
    return self.assertResult('POST', '/configuration/containers', container_json, CREATED, container_json_result)
