'A dataset cannot be moved if a lease is held on it by a particular
node.'

@require_moving_backend
@require_cluster(2)
def test_lease_prevents_move(self, cluster):

    target_node = cluster.nodes[1].uuid
    return self._assert_lease_behavior(cluster=cluster, operation=cluster.client.move_dataset, additional_kwargs={'primary': target_node}, state_method=(lambda dataset: cluster.wait_for_dataset(dataset.set(primary=UUID(target_node)))))
