예제 #1
0
 def test_name_package(self):
     spec = RpmSpecFile(NAME_PKG_CONTENT)
     self.assertEqual(spec.packages(), ['package', 'package-package-toto'])
예제 #2
0
 def test_sub_package(self):
     spec = RpmSpecFile(SUB_PKG_CONTENT)
     self.assertEqual(spec.packages(), ['package', 'package-subpkg-toto'])
예제 #3
0
 def test_nsub_package(self):
     spec = RpmSpecFile(NSUB_PKG_CONTENT)
     self.assertEqual(spec.packages(), ['package', 'pre-serv-post'])
예제 #4
0
 def test_package_with_macro(self):
     spec = RpmSpecFile(MACRO_SPEC_CONTENT)
     self.assertEqual(spec.packages(), ['package'])
예제 #5
0
 def test_package_with_provides(self):
     spec = RpmSpecFile(PROVIDES_SPEC_CONTENT)
     self.assertEqual(spec.packages(), ['package', 'oldname'])
 def test_name_package(self):
     spec = RpmSpecFile(NAME_PKG_CONTENT)
     self.assertEqual(spec.packages(), ['package', 'package-package-toto'])
예제 #7
0
 def test_basic_package(self):
     spec = RpmSpecFile(BASIC_SPEC_CONTENT)
     self.assertEqual(spec.packages(), ['package'])
 def test_nsub_package(self):
     spec = RpmSpecFile(NSUB_PKG_CONTENT)
     self.assertEqual(spec.packages(), ['package', 'pre-serv-post'])
 def test_sub_package(self):
     spec = RpmSpecFile(SUB_PKG_CONTENT)
     self.assertEqual(spec.packages(), ['package', 'package-subpkg-toto'])
 def test_package_with_provides(self):
     spec = RpmSpecFile(PROVIDES_SPEC_CONTENT)
     self.assertEqual(spec.packages(), ['package', 'oldname'])
 def test_package_with_macro(self):
     spec = RpmSpecFile(MACRO_SPEC_CONTENT)
     self.assertEqual(spec.packages(), ['package'])
 def test_basic_package(self):
     spec = RpmSpecFile(BASIC_SPEC_CONTENT)
     self.assertEqual(spec.packages(), ['package'])