From e1eebf6a63633d807568fa887dac4ea6af75c95d Mon Sep 17 00:00:00 2001 From: Alec Warner Date: Sun, 25 Mar 2007 05:54:47 +0000 Subject: [PATCH] Fix the rest of the tests svn path=/main/trunk/; revision=6279 --- pym/portage/tests/env/config/test_PackageKeywordsFile.py | 4 ++-- pym/portage/tests/env/config/test_PackageMaskFile.py | 6 +++--- pym/portage/tests/env/config/test_PackageUseFile.py | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pym/portage/tests/env/config/test_PackageKeywordsFile.py b/pym/portage/tests/env/config/test_PackageKeywordsFile.py index 32e9c30c5..f493b82dc 100644 --- a/pym/portage/tests/env/config/test_PackageKeywordsFile.py +++ b/pym/portage/tests/env/config/test_PackageKeywordsFile.py @@ -12,7 +12,7 @@ class PackageKeywordsFileTestCase(TestCase): cpv = 'sys-apps/portage' keywords = ['~x86', 'amd64', '-mips'] - def testPackageKeywordsLoad(self): + def testPackageKeywordsFile(self): """ A simple test to ensure the load works properly """ @@ -20,7 +20,7 @@ class PackageKeywordsFileTestCase(TestCase): 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)] diff --git a/pym/portage/tests/env/config/test_PackageMaskFile.py b/pym/portage/tests/env/config/test_PackageMaskFile.py index 83c9095fd..d97eeebe8 100644 --- a/pym/portage/tests/env/config/test_PackageMaskFile.py +++ b/pym/portage/tests/env/config/test_PackageMaskFile.py @@ -12,12 +12,12 @@ class PackageMaskFileTestCase(TestCase): 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() diff --git a/pym/portage/tests/env/config/test_PackageUseFile.py b/pym/portage/tests/env/config/test_PackageUseFile.py index 4638923df..71ab526ff 100644 --- a/pym/portage/tests/env/config/test_PackageUseFile.py +++ b/pym/portage/tests/env/config/test_PackageUseFile.py @@ -12,14 +12,14 @@ class PackageUseFileTestCase(TestCase): 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)] -- 2.26.2