Commit 92010698 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[1643] minor editorial nits

parent c430386c
......@@ -328,7 +328,8 @@ class ModuleCCSession(ConfigData):
and return an answer created with create_answer()"""
self._command_handler = command_handler
def _add_remote_config_internal(self, module_spec, config_update_callback=None):
def _add_remote_config_internal(self, module_spec,
config_update_callback=None):
"""The guts of add_remote_config and add_remote_config_by_name"""
module_cfg = ConfigData(module_spec)
module_name = module_spec.get_module_name()
......
......@@ -523,10 +523,10 @@ class TestModuleCCSession(unittest.TestCase):
# These three functions are helper functions to easy up the writing of them.
# To write a test, there need to be 3 functions. First, the function that
# does the actual test. It looks like:
# def _internal_test(self, function_lambda, parameter, fill_other_messages):
# def _internal_test(self, function_lambda, param, fill_other_messages):
#
# The function_lambda provides the tested function if called on the
# ccsession. The param is the parameter to pass to the function (either the
# ccsession. The param is the parameter to pass to the function (either
# the module name or the spec file name. The fill_other_messages fills
# needed messages (the answer containing the module spec in case of add by
# name, no messages in the case of adding by spec file) into the fake bus.
......@@ -585,7 +585,7 @@ class TestModuleCCSession(unittest.TestCase):
self.assertFalse("Spec2" in fake_session.subscriptions)
self.assertRaises(ModuleCCSessionError, mccs.get_remote_config_value, "Spec2", "item1")
# test if unsubscription is alse sent when object is deleted
# test if unsubscription is also sent when object is deleted
fill_other_messages(fake_session)
fake_session.group_sendmsg({'result' : [0]}, 'Spec2')
rmodname = function(parameter)
......
......@@ -31,7 +31,7 @@ class Unexpected(Exception):
class AddError(Exception):
"""
Raised when an key can not be added. This usually means there's a
Raised when a key can not be added. This usually means there's a
duplicity.
"""
pass
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment