def test_group_install_locale(self, _unused): comps = self.base.comps grp = comps.group_by_pattern('Kritick\xe1 cesta (Z\xe1klad)') with warnings.catch_warnings(): warnings.simplefilter("ignore") cnt = self.base.group_install(grp, ('mandatory', )) self.assertEqual(cnt, 2)
def test_group_install_exclude_notexist(self): comps = self.base.comps grp = comps.group_by_pattern('somerset') with warnings.catch_warnings(): warnings.simplefilter("ignore") cnt = self.base.group_install(grp, ('optional',), exclude=('x*',)) self.assertEqual(cnt, 1)
def test_group_install_locale(self, _unused): comps = self.base.comps grp = comps.group_by_pattern('Kritick\xe1 cesta (Z\xe1klad)') with warnings.catch_warnings(): warnings.simplefilter("ignore") cnt = self.base.group_install(grp, ('mandatory',)) self.assertEqual(cnt, 2)
def test_group_install_exclude_notexist(self): comps = self.base.comps grp = comps.group_by_pattern('somerset') with warnings.catch_warnings(): warnings.simplefilter("ignore") cnt = self.base.group_install(grp, ('optional', ), exclude=('x*', )) self.assertEqual(cnt, 1)
def test_environment_remove(self): comps = self.base.comps grp = comps.group_by_pattern('somerset') self.assertGreater(self.base.group_remove(grp), 0) env = comps.environment_by_pattern("sugar-desktop-environment") self.assertGreater(self.base.environment_remove(env), 0) prst = self.base.group_persistor p_env = prst.environment(env.id) self.assertFalse(p_env.installed) peppers = prst.group('Peppers') somerset = prst.group('somerset') self.assertFalse(peppers.installed) self.assertFalse(somerset.installed)
def test_group_install_exclude_notexist(self): comps = self.base.comps grp = comps.group_by_pattern('somerset') cnt = self.base.group_install(grp.id, ('optional',), exclude=('x*',)) self.assertEqual(cnt, 1)
def test_group_install_locale(self, _unused): comps = self.base.comps grp = comps.group_by_pattern('Kritick\xe1 cesta (Z\xe1klad)') cnt = self.base.group_install(grp.id, ('mandatory',)) self.assertEqual(cnt, 2)
def test_group_install_exclude_notexist(self): comps = self.base.comps grp = comps.group_by_pattern('somerset') cnt = self.base.group_install(grp.id, ('optional', ), exclude=('x*', )) self.assertEqual(cnt, 1)
def test_group_install_locale(self, _unused): comps = self.base.comps grp = comps.group_by_pattern('Kritick\xe1 cesta (Z\xe1klad)') cnt = self.base.group_install(grp.id, ('mandatory', )) self.assertEqual(cnt, 2)
def test_group_install_exclude_glob(self): comps = self.base.comps grp = comps.group_by_pattern('somerset') cnt = self.base.group_install(grp, ('optional', ), exclude=('lo*', )) self.assertEqual(cnt, 0)
def test_group_install_exclude_glob(self): comps = self.base.comps grp = comps.group_by_pattern('somerset') cnt = self.base.group_install(grp, ('optional',), exclude=('lo*',)) self.assertEqual(cnt, 0)
def test_group_install_exclude(self): comps = self.base.comps grp = comps.group_by_pattern("somerset") cnt = self.base.group_install(grp, ("optional",), exclude=("lotus",)) self.assertEqual(cnt, 0)