'When the cluster configuration includes containers on more than one
node, the endpoint returns a list containing the container data for
all nodes.'

def test_multi_containers_multi_nodes(self):

    postgres_ports = [Port(internal_port=5432, external_port=54320)]
    mysql_ports = [Port(internal_port=3306, external_port=33060)]
    applications = {self.NODE_A: {a.name: a for a in [Application(name=u'postgres', image=DockerImage.from_string('postgres'), ports=postgres_ports), Application(name=u'webserver', image=DockerImage.from_string('nginx:latest'))]}, self.NODE_B: {a.name: a for a in [Application(name=u'mysql', image=DockerImage.from_string('mysql:5.6.17'), ports=mysql_ports, cpu_shares=512, memory_limit=524288000)]}}
    deployment = Deployment(nodes={Node(uuid=self.NODE_A_UUID, applications=applications[self.NODE_A]), Node(uuid=self.NODE_B_UUID, applications=applications[self.NODE_B])})
    expected_a = [container_configuration_response(application, self.NODE_A) for application in applications[self.NODE_A].values()]
    expected_b = [container_configuration_response(application, self.NODE_B) for application in applications[self.NODE_B].values()]
    return self._containers_test(deployment, (expected_a + expected_b))
