Rename (pre/post)condition to (pre/post)_condition

This patch updates the applier's abstract methods to be consistent
with other abstract methods of similar nature.

Also included are a few other miscellaneous changes.

Change-Id: Ia1527c00332011412aba2ab326ec986f1e773001
Closes-bug: 1606634
This commit is contained in:
Joe Cropper
2016-08-06 16:21:30 -05:00
parent 27b3c5254d
commit ea01031268
11 changed files with 65 additions and 65 deletions

View File

@@ -102,15 +102,15 @@ class TestChangeNovaServiceState(base.TestCase):
sorted([([str(p) for p in e.path], type(e)) for e in exc.errors],
key=lambda x: str(x[0])))
def test_change_service_state_precondition(self):
def test_change_service_state_pre_condition(self):
try:
self.action.precondition()
self.action.pre_condition()
except Exception as exc:
self.fail(exc)
def test_change_service_state_postcondition(self):
def test_change_service_state_post_condition(self):
try:
self.action.postcondition()
self.action.post_condition()
except Exception as exc:
self.fail(exc)

View File

@@ -153,15 +153,15 @@ class TestMigration(base.TestCase):
[(['resource_id'], voluptuous.Invalid)],
[(e.path, type(e)) for e in exc.errors])
def test_migration_precondition(self):
def test_migration_pre_condition(self):
try:
self.action.precondition()
self.action.pre_condition()
except Exception as exc:
self.fail(exc)
def test_migration_postcondition(self):
def test_migration_post_condition(self):
try:
self.action.postcondition()
self.action.post_condition()
except Exception as exc:
self.fail(exc)