'When the cluster state includes one dataset, the endpoint
returns a single-element list containing the dataset.'

def test_one_dataset(self):

    expected_dataset = Dataset(dataset_id=unicode(uuid4()))
    expected_manifestation = Manifestation(dataset=expected_dataset, primary=True)
    expected_hostname = u'192.0.2.101'
    expected_uuid = uuid4()
    self.cluster_state_service.apply_changes([NodeState(hostname=expected_hostname, uuid=expected_uuid, manifestations={expected_dataset.dataset_id: expected_manifestation}, paths={expected_dataset.dataset_id: FilePath('/path/dataset')}, devices={})])
    expected_dict = dict(dataset_id=expected_dataset.dataset_id, primary=unicode(expected_uuid), path=u'/path/dataset')
    response = [expected_dict]
    return self.assertResult('GET', '/state/datasets', None, OK, response)
