'If a volume is specified with a deleted dataset, a 404 error is
returned.'

def test_deleted_dataset(self):

    dataset_id = unicode(uuid4())
    d = self.assertResponseCode('POST', '/configuration/datasets', {u'dataset_id': dataset_id, u'primary': self.NODE_A}, CREATED)
    d.addCallback((lambda _: self.assertResponseCode('DELETE', ('/configuration/datasets/%s' % (dataset_id.encode('ascii'),)), None, OK)))
    d.addCallback((lambda _: self.assertResult('POST', '/configuration/containers', {u'node_uuid': self.NODE_A, u'name': u'postgres', u'image': u'postgres', u'volumes': [{u'dataset_id': dataset_id, u'mountpoint': u'/db'}]}, NOT_FOUND, {u'description': u'Dataset    not    found.'})))
    return d
