def test_deleted(self):
        dataset = Dataset(dataset_id=unicode(uuid4()), deleted=True)
        expected_uuid = uuid4(),
        expected = dict(
            dataset_id=dataset.dataset_id,
            primary=unicode(expected_uuid),
            metadata={},
            deleted=True,
        )
        self.assertEqual(
            expected,
            api_dataset_from_dataset_and_node(dataset, expected_uuid)
        )
Combine ``flags`` and ``new_flags``
dataset/ETHPy150Open ClusterHQ/flocker/flocker/control/test/test_httpapi.py/APIDatasetFromDatasetAndNodeTests.test_deleted--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/file.py/_add_flags