I'm not sure, but this may be a problem.  I learned the hard way also: Unittest must not depend on libvirt or other virtualization stuff being installed or available (this is same reason why we have dummy_virsh).  They must be self-contained, just checking the module interfaces in other words, not dependant on any environment stuff.  Does that make sense?