'``datasets_from_deployment`` does not return replica manifestations
on other nodes.'

def test_primary_and_replica_manifestations(self):

    expected_uuid = uuid4()
    expected_dataset = Dataset(dataset_id=u'jalkjlk')
    volume = AttachedVolume(manifestation=Manifestation(dataset=expected_dataset, primary=True), mountpoint=FilePath('/blah'))
    node1 = Node(uuid=expected_uuid, applications={a.name: a for a in [Application(name=u'mysql-clusterhq', image=DockerImage.from_string('mysql')), Application(name=u'site-clusterhq.com', image=DockerImage.from_string('site'), volume=volume)]}, manifestations={expected_dataset.dataset_id: volume.manifestation})
    expected_manifestation = Manifestation(dataset=expected_dataset, primary=False)
    node2 = Node(uuid=uuid4(), applications={}, manifestations={expected_manifestation.dataset_id: expected_manifestation})
    deployment = Deployment(nodes=frozenset([node1, node2]))
    expected = dict(dataset_id=expected_dataset.dataset_id, primary=unicode(expected_uuid), metadata=thaw(expected_dataset.metadata), deleted=False)
    self.assertEqual([expected], list(datasets_from_deployment(deployment)))
