Merge "Fix common misspellings"

This commit is contained in:
Jenkins 2015-03-24 13:51:22 +00:00 committed by Gerrit Code Review
commit 848d63b398
2 changed files with 3 additions and 3 deletions

View File

@ -651,7 +651,7 @@ class HOTemplateTest(common.HeatTestCase):
snippet = {'repeat': {'template': 'this is %var%'}}
self.assertRaises(KeyError, self.resolve, snippet, tmpl)
# mispelled for_each
# misspelled for_each
snippet = {'repeat': {'template': 'this is %var%',
'foreach': {'%var%': ['a', 'b', 'c']}}}
self.assertRaises(KeyError, self.resolve, snippet, tmpl)
@ -666,7 +666,7 @@ class HOTemplateTest(common.HeatTestCase):
'for_each': {'%var%': 'a'}}}
self.assertRaises(TypeError, self.resolve, snippet, tmpl)
# mispelled template
# misspelled template
snippet = {'repeat': {'templte': 'this is %var%',
'for_each': {'%var%': ['a', 'b', 'c']}}}
self.assertRaises(KeyError, self.resolve, snippet, tmpl)

View File

@ -541,7 +541,7 @@ class SqlAlchemyTest(common.HeatTestCase):
def test_stack_get_all_non_existing_marker(self):
[self._setup_test_stack('stack', x)[1] for x in UUIDs]
uuid = 'this stack doesnt exist'
uuid = 'this stack doesn\'t exist'
st_db = db_api.stack_get_all(self.ctx, marker=uuid)
self.assertEqual(3, len(st_db))