def test_name_package(self): spec = RpmSpecFile(NAME_PKG_CONTENT) self.assertEqual(spec.packages(), ['package', 'package-package-toto'])
def test_sub_package(self): spec = RpmSpecFile(SUB_PKG_CONTENT) self.assertEqual(spec.packages(), ['package', 'package-subpkg-toto'])
def test_nsub_package(self): spec = RpmSpecFile(NSUB_PKG_CONTENT) self.assertEqual(spec.packages(), ['package', 'pre-serv-post'])
def test_package_with_macro(self): spec = RpmSpecFile(MACRO_SPEC_CONTENT) self.assertEqual(spec.packages(), ['package'])
def test_package_with_provides(self): spec = RpmSpecFile(PROVIDES_SPEC_CONTENT) self.assertEqual(spec.packages(), ['package', 'oldname'])
def test_basic_package(self): spec = RpmSpecFile(BASIC_SPEC_CONTENT) self.assertEqual(spec.packages(), ['package'])