Adapt unit test to use yumrepo instead of template file