def setUp(self): self.profile = "/usr/portage/profiles/default-linux/x86/2007.0/" self.keywords = "x86" # Use fake/test dbapi to avoid slow tests self.vardb = testdbapi() # self.vardb.inject_cpv('sys-apps/portage-2.0', { 'SLOT' : 0 }) # Consumers only use ARCH, so avoid portage.settings by using a dict self.settings = { 'ARCH' : 'x86' }
def setUp(self): self.profile = "/usr/portage/profiles/default-linux/x86/2007.0/" self.keywords = "x86" # Use fake/test dbapi to avoid slow tests self.vardb = testdbapi() # self.vardb.inject_cpv('sys-apps/portage-2.0', { 'SLOT' : 0 }) # Consumers only use ARCH, so avoid portage.settings by using a dict self.settings = {'ARCH': 'x86'}