'A container will not be created if the supplied configuration includes
links with a duplicated "local_port" value.'

def test_create_container_with_links_local_port_collision(self):

    d = self.assertResult('POST', '/configuration/containers', {u'node_uuid': self.NODE_A, u'name': u'webserver', u'image': u'nginx:latest', u'links': [{u'alias': u'postgres', u'local_port': 5432, u'remote_port': 54320}, {u'alias': u'anotherpostgres', u'local_port': 5432, u'remote_port': 54321}]}, CONFLICT, {u'description': u"The    local    ports    in    a    container's    links    must    be    unique."})
    return d
