'A valid API request to create a container including port mappings
returns the port mapping supplied in the request in the response JSON.'

def test_create_container_with_ports_response(self):

    ports = [{'internal': 5432, 'external': 54320}]
    container_json = {u'node_uuid': self.NODE_B, u'name': u'postgres', u'image': u'postgres', u'ports': ports}
    container_json_result = {u'node_uuid': self.NODE_B, u'name': u'postgres', u'image': u'postgres:latest', u'ports': ports, u'restart_policy': {u'name': u'never'}}
    return self.assertResult('POST', '/configuration/containers', container_json, CREATED, container_json_result)
