'A maximum size included with the creation of a dataset is included in
the persisted configuration and response body.'

def test_create_with_maximum_size(self):

    dataset_id = unicode(uuid4())
    maximum_size = (((1024 * 1024) * 1024) * 42)
    dataset = {u'primary': self.NODE_A, u'dataset_id': dataset_id, u'maximum_size': maximum_size}
    response = dataset.copy()
    response[u'metadata'] = {}
    response[u'deleted'] = False
    creating = self.assertResult('POST', '/configuration/datasets', dataset, CREATED, response)
    def created(ignored):
        deployment = self.persistence_service.get()
        self.assertEqual(Deployment(nodes=frozenset({Node(uuid=self.NODE_A_UUID, manifestations={dataset_id: Manifestation(dataset=Dataset(dataset_id=dataset_id, maximum_size=maximum_size), primary=True)})})), deployment)
    creating.addCallback(created)
    return creating
