def get_media_config(self, root): config = MediasysConfig() distroconf = config.get_any_distro() layoutconf = config.get_any_layout() distroconf.root = root distroconf.recently_removed_dir = self.recently_removed_dir distro = distromod.get_distro(distroconf, layoutconf, config) config.recently_removed_dir = self.testrecentlyremoved_dir media = self.media_class(self.testrepomainrelease_dir, distroconf) return media, distroconf, distro
def test_config(self): from mediasys.config import MediasysConfig config = MediasysConfig() return config.get_any_distro()