aboutsummaryrefslogtreecommitdiffstats
path: root/tests/policy_tests.py
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2014-03-13 10:48:36 +0000
committerBryn M. Reeves <bmr@redhat.com>2014-03-13 10:48:36 +0000
commit3eb24386719ee06c9e726550065c5427f1021c6f (patch)
tree1a13f467a343be96950823ec488f8c1209ea6933 /tests/policy_tests.py
parentdb8839351479c60234bb6873394d93b56f0174eb (diff)
downloadsos-3eb24386719ee06c9e726550065c5427f1021c6f.tar.gz
Update policy_tests.py for validate_plugin change
The policy_tests unit tests call validatePlugin(). Update them to use the new name. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'tests/policy_tests.py')
-rw-r--r--tests/policy_tests.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/policy_tests.py b/tests/policy_tests.py
index aa74da7d..764af836 100644
--- a/tests/policy_tests.py
+++ b/tests/policy_tests.py
@@ -21,25 +21,25 @@ class PolicyTests(unittest.TestCase):
p = FauxPolicy()
p.valid_subclasses = []
- self.assertTrue(p.validatePlugin(FauxPlugin))
+ self.assertTrue(p.validate_plugin(FauxPlugin))
def test_redhat(self):
p = FauxPolicy()
p.valid_subclasses = [RedHatPlugin]
- self.assertTrue(p.validatePlugin(FauxRedHatPlugin))
+ self.assertTrue(p.validate_plugin(FauxRedHatPlugin))
def test_debian(self):
p = FauxPolicy()
p.valid_subclasses = [DebianPlugin]
- self.assertTrue(p.validatePlugin(FauxDebianPlugin))
+ self.assertTrue(p.validate_plugin(FauxDebianPlugin))
def test_fails(self):
p = FauxPolicy()
p.valid_subclasses = []
- self.assertFalse(p.validatePlugin(FauxDebianPlugin))
+ self.assertFalse(p.validate_plugin(FauxDebianPlugin))
def test_can_import(self):
self.assertTrue(import_policy('redhat') is not None)