This is good example of "complex" function you could put into <code>virttest/utils_test.py</code> to make the test-module smaller.  Especially if you think you will write another test that needs it.  Otherwise, if it's just for this test, it's okay to leave it in here.