Properly test ref valid against proper input

Signed-off-by: Steven Dake <sdake@redhat.com>
This commit is contained in:
Steven Dake 2012-05-11 14:58:14 -07:00
parent af7e57cad2
commit d7568d2fa3
1 changed files with 3 additions and 2 deletions

View File

@ -232,7 +232,7 @@ class validateTest(unittest.TestCase):
assert(volumeattach.validate())
def test_validate_ref_valid(self):
t = json.loads(test_template_ref % 'WikiDatabasez')
t = json.loads(test_template_ref % 'WikiDatabase')
t['Parameters']['KeyName']['Value'] = 'test'
params = {}
params['KeyStoneCreds'] = None
@ -243,7 +243,8 @@ class validateTest(unittest.TestCase):
manager = managers.EngineManager()
res = dict(manager.validate_template(None, t, params)['ValidateTemplateResult'])
assert (res['Description'] != 'Successfully validated')
print 'res %s' % res
assert (res['Description'] == 'Successfully validated')
def test_validate_ref_invalid(self):
t = json.loads(test_template_ref % 'WikiDatabasez')