'When the cluster state includes more than one container, the endpoint
returns a list containing the containers in arbitrary order.'

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.name: expected_application1}), NodeState(hostname=expected_hostname2, uuid=expected_uuid2, applications={expected_application2.name: 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('GET', '/state/containers', None, OK, response)
