[TrivialFix] Fix comment and function name typo error

Change-Id: I713dd471a76e82ee0a4471ea4e5f9dcb57227345
This commit is contained in:
jeckxie 2016-12-22 15:20:23 +08:00
parent 10fdc075fd
commit df2fd4a252
4 changed files with 4 additions and 4 deletions

View File

@ -622,7 +622,7 @@ def _compute_node_select(context, filters=None, limit=None, marker=None):
select = select.where(cn_tbl.c.id > marker)
if limit is not None:
select = select.limit(limit)
# Explictly order by id, so we're not dependent on the native sort
# Explicitly order by id, so we're not dependent on the native sort
# order of the underlying DB.
select = select.order_by(asc("id"))
return select

View File

@ -284,7 +284,7 @@ class SingleCellSimple(fixtures.Fixture):
@contextmanager
def _fake_target_cell(self, context, target_cell):
# NOTE(danms): Just pass through the context without actually
# targetting anything.
# targeting anything.
yield context

View File

@ -123,7 +123,7 @@ class TestExtractJSON(test.NoDBTestCase):
self.schema)
self.assertIn('JSON does not validate', str(error))
def test_no_addtional_properties(self):
def test_no_additional_properties(self):
error = self.assertRaises(webob.exc.HTTPBadRequest,
util.extract_json,
'{"name": "hello", "cow": "moo"}',

View File

@ -109,7 +109,7 @@ class ImageBackendFixture(fixtures.Fixture):
disk = mock.create_autospec(imagebackend.Image)
# NOTE(mdbooth): fake_cache and fake_import_file are for compatiblity
# NOTE(mdbooth): fake_cache and fake_import_file are for compatibility
# with existing tests which test got_files and imported_files. They
# should be removed when they have no remaining users.
disk.cache.side_effect = self._fake_cache