'If a ``POST`` request made to the endpoint includes just the minimum
information necessary to create a new dataset (an identifier of the
node on which to place its primary manifestation) then the desired
configuration is updated to include a new unattached manifestation of
the new dataset with a newly generated dataset identifier and a
description of the new dataset is returned in a success response to the
client.'

def test_minimal_create_dataset(self):

    creating = self.assertResponseCode('POST', '/configuration/datasets', {u'primary': self.NODE_A}, CREATED)
    creating.addCallback(readBody)
    creating.addCallback(loads)
    def got_result(result):
        dataset_id = result.pop(u'dataset_id')
        self.assertEqual({u'primary': self.NODE_A, u'metadata': {}, u'deleted': False}, result)
        deployment = self.persistence_service.get()
        self.assertEqual({dataset_id}, set(get_dataset_ids(deployment)))
    creating.addCallback(got_result)
    return creating
