If this is the only actual test code that runs here, just make it part of the main ``run_guestfs_inspect_operations`` function.  If the test needs to be extended later, then it can be broken out as you have done here.