def test_two_containers(self):
        expected_application1 = Application(
            name=u"myapp", image=DockerImage.from_string(u"busybox"))
        expected_hostname1 = u"192.0.2.101"
        expected_uuid1 = uuid4()
        expected_application2 = Application(
            name=u"myapp2", image=DockerImage.from_string(u"busybox2"))
        expected_hostname2 = u"192.0.2.102"
        expected_uuid2 = uuid4()
        self.cluster_state_service.apply_changes([
            NodeState(
                hostname=expected_hostname1,
                uuid=expected_uuid1,
                applications={expected_application1},
            ),
            NodeState(
                hostname=expected_hostname2,
                uuid=expected_uuid2,
                applications={expected_application2},
            )
        ])
        expected_dict1 = dict(
            name=u"myapp",
            node_uuid=unicode(expected_uuid1),
            image=u"busybox:latest",
            running=True,
            restart_policy={u"name": u"never"},
        )
        expected_dict2 = dict(
            name=u"myapp2",
            node_uuid=unicode(expected_uuid2),
            image=u"busybox2:latest",
            running=True,
            restart_policy={u"name": u"never"},
        )
        response = [expected_dict1, expected_dict2]
        return self.assertResultItems(
            b"GET", b"/state/containers", None, OK, response
        )
When the cluster state includes more than one container, the endpoint
dataset/ETHPy150Open ClusterHQ/flocker/flocker/control/test/test_httpapi.py/ContainerStateTestsMixin.test_two_containers