예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
 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)
예제 #4
0
 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)
예제 #5
0
파일: test_groups.py 프로젝트: gekoraus/dnf
 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)
예제 #6
0
 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)
예제 #7
0
 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)
예제 #8
0
 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)
예제 #9
0
 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)
예제 #10
0
 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)
예제 #11
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)
예제 #12
0
파일: test_groups.py 프로젝트: gekoraus/dnf
 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)
예제 #13
0
파일: test_groups.py 프로젝트: hutarova/dnf
 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)