cpv = 'sys-apps/portage'
keywords = ['~x86', 'amd64', '-mips']
- def testPackageKeywordsLoad(self):
+ def testPackageKeywordsFile(self):
"""
A simple test to ensure the load works properly
"""
self.BuildFile()
try:
f = PackageKeywordsFile(self.fname)
- f.load(recursive=False)
+ f.load()
for cpv, keyword in f.iteritems():
self.assertEqual( cpv, self.cpv )
[k for k in keyword if self.assertTrue(k in self.keywords)]
atoms = ['sys-apps/portage','dev-util/diffball','not@va1id@t0m']
- def testPackageMaskLoad(self):
+ def testPackageMaskFile(self):
self.BuildFile()
try:
f = PackageMaskFile(self.fname)
- f.load(recursive=False)
- [atom for atom in f.iterkeys() if self.assertTrue(atom in self.atoms)]
+ f.load()
+ [atom for atom in f.keys() if self.assertTrue(atom in self.atoms)]
finally:
self.NukeFile()
cpv = 'sys-apps/portage'
useflags = ['cdrom', 'far', 'boo', 'flag', 'blat']
- def testPackageUseLoad(self):
+ def testPackageUseFile(self):
"""
A simple test to ensure the load works properly
"""
self.BuildFile()
try:
f = PackageUseFile(self.fname)
- f.load(recursive=False)
+ f.load()
for cpv, use in f.iteritems():
self.assertEqual( cpv, self.cpv )
[flag for flag in use if self.assertTrue(flag in self.useflags)]