How would one go about using bzr's selftest infrastructure in plugins? Just a short bit of pseudocode would suffice as an answer :) Thanks