test: Add helper method for checking if current test is nondestructive
test: Add helper method for checking if current test is nondestructive

We are going to use that in more places soon.

martinpitt/cockpit,cockpituous/cockpit,cockpit-project/cockpit,martinpitt/cockpit,deryni/cockpit,moraleslazaro/cockpit,moraleslazaro/cockpit,moraleslazaro/cockpit,mvollmer/cockpit,deryni/cockpit,cockpituous/cockpit,moraleslazaro/cockpit,cockpituous/cockpit,cockpit-project/cockpit,cockpituous/cockpit,deryni/cockpit,moraleslazaro/cockpit,moraleslazaro/cockpit,cockpituous/cockpit,deryni/cockpit,mvollmer/cockpit,deryni/cockpit,mvollmer/cockpit,deryni/cockpit,mvollmer/cockpit,cockpit-project/cockpit,martinpitt/cockpit,garrett/cockpit,garrett/cockpit,martinpitt/cockpit,garrett/cockpit,cockpit-project/cockpit,garrett/cockpit,garrett/cockpit,moraleslazaro/cockpit,mvollmer/cockpit,cockpituous/cockpit,cockpit-project/cockpit,martinpitt/cockpit,deryni/cockpit