'If a dataset has been marked as deleted *and* it is leased, no changes
are made.'

def test_no_delete_if_leased(self):

    local_state = self.ONE_DATASET_STATE
    leases = Leases().acquire(datetime.now(tz=UTC), self.DATASET_ID, self.ONE_DATASET_STATE.uuid)
    local_config = to_node(self.ONE_DATASET_STATE).transform(['manifestations', unicode(self.DATASET_ID), 'dataset', 'deleted'], True)
    local_config = add_application_with_volume(local_config)
    assert_calculated_changes(self, local_state, local_config, set(), in_parallel(changes=[]), leases=leases)
