Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
92010698
Commit
92010698
authored
Feb 22, 2012
by
JINMEI Tatuya
Browse files
[1643] minor editorial nits
parent
c430386c
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/lib/python/isc/config/ccsession.py
View file @
92010698
...
...
@@ -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
()
...
...
src/lib/python/isc/config/tests/ccsession_test.py
View file @
92010698
...
...
@@ -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, param
eter
, 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 als
e
sent when object is deleted
# test if unsubscription is als
o
sent when object is deleted
fill_other_messages
(
fake_session
)
fake_session
.
group_sendmsg
({
'result'
:
[
0
]},
'Spec2'
)
rmodname
=
function
(
parameter
)
...
...
src/lib/python/isc/server_common/tsig_keyring.py
View file @
92010698
...
...
@@ -31,7 +31,7 @@ class Unexpected(Exception):
class
AddError
(
Exception
):
"""
Raised when a
n
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment