'One cannot construct a ``Node`` where there are manifestations on the
``applications`` attribute that aren\'t also in the given
``manifestations``.'

def test_manifestations_from_applications(self):

    m1 = Manifestation(dataset=Dataset(dataset_id=unicode(uuid4())), primary=True)
    self.assertRaises(InvariantException, Node, hostname=u'node1.example.com', applications={a.name: a for a in [APP1, Application(name=u'a', image=DockerImage.from_string(u'x'), volume=AttachedVolume(manifestation=m1, mountpoint=FilePath('/xxx')))]})
