def test_create_container_with_links_local_port_collision(self):
        d = self.assertResult(
            b"POST", b"/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
A container will not be created if the supplied configuration includes
dataset/ETHPy150Open ClusterHQ/flocker/flocker/control/test/test_httpapi.py/CreateContainerTestsMixin.test_create_container_with_links_local_port_collision