diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2013-03-28 18:08:59 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2013-03-28 18:08:59 +0000 |
commit | 29e180fbc291686ee991952005c84c4b0d216a86 (patch) | |
tree | 1d6432854825efb97d816bc713145d052c8fce04 /tests/policy_tests.py | |
parent | 4f0da96964fec5bdc2b66d4117aa9773e5a12a4d (diff) | |
download | sos-29e180fbc291686ee991952005c84c4b0d216a86.tar.gz |
Make more names pep8 compliant across the tree
Fix policy and utility function, method and variable names to use
lower case underscored style instead of camelCase.
Related to Issue #112.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'tests/policy_tests.py')
-rw-r--r-- | tests/policy_tests.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/policy_tests.py b/tests/policy_tests.py index 25795a1c..aa74da7d 100644 --- a/tests/policy_tests.py +++ b/tests/policy_tests.py @@ -54,16 +54,16 @@ class PackageManagerTests(unittest.TestCase): self.pm = PackageManager() def test_default_all_pkgs(self): - self.assertEquals(self.pm.allPkgs(), {}) + self.assertEquals(self.pm.all_pkgs(), {}) def test_default_all_pkgs_by_name(self): - self.assertEquals(self.pm.allPkgsByName('doesntmatter'), []) + self.assertEquals(self.pm.all_pkgs_by_name('doesntmatter'), []) def test_default_all_pkgs_by_name_regex(self): - self.assertEquals(self.pm.allPkgsByNameRegex('.*doesntmatter$'), []) + self.assertEquals(self.pm.all_pkgs_by_name_regex('.*doesntmatter$'), []) def test_default_pkg_by_name(self): - self.assertEquals(self.pm.pkgByName('foo'), None) + self.assertEquals(self.pm.pkg_by_name('foo'), None) if __name__ == "__main__": unittest.main() |