def _test_conflicting_ports(self, node1, node2):
        d = self.assertResponseCode(
            b"POST", b"/configuration/containers",
            {
                u"node_uuid": node1, u"name": u"postgres",
                u"image": u"postgres",
                u"ports": [{u'internal': 5432, u'external': 54320}]
            }, CREATED
        )
        # try to create another container with the same ports
        d.addCallback(lambda _: self.assertResult(
            b"POST", b"/configuration/containers",
            {
                u"node_uuid": node2,
                u"name": u'another_postgres',
                u'image': u'postgres',
                u'ports': [{u'internal': 5432, u'external': 54320}]
            },
            CONFLICT, {
                u'description':
                    u"A specified external port is already in use.",
            }
        ))
        return d
Get password.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/control/test/test_httpapi.py/CreateContainerTestsMixin._test_conflicting_ports--crossover with--dataset/ETHPy150Open Relrin/aiorest-ws/aiorest_ws/auth/user/abstractions.py/User.password