'``Deployment.applications()`` returns applications from all nodes.'

def test_applications(self):

    node = Node(hostname=u'node1.example.com', applications={a.name: a for a in [Application(name=u'mysql-clusterhq', image=DockerImage.from_string(u'image')), Application(name=u'site-clusterhq.com', image=DockerImage.from_string(u'image'))]})
    another_node = Node(hostname=u'node2.example.com', applications={u'site-clusterhq.com': Application(name=u'site-clusterhq.com', image=DockerImage.from_string(u'image'))})
    deployment = Deployment(nodes=frozenset([node, another_node]))
    self.assertEqual(set(deployment.applications()), (set(node.applications.values()) | set(another_node.applications.values())))
