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
a8bb19e3
Commit
a8bb19e3
authored
Aug 21, 2013
by
Michal 'vorner' Vaner
Browse files
[3028] Check the shutdown is actually called
parent
507da494
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/cmdctl/tests/cmdctl_test.py
View file @
a8bb19e3
...
...
@@ -468,14 +468,16 @@ class TestCommandControl(unittest.TestCase):
def
send_stopping
():
pass
self
.
cmdctl
.
_module_cc
=
ModuleCC
called
=
[]
class
Server
:
def
shutdown
():
pass
called
.
append
(
'shutdown'
)
self
.
cmdctl
.
_httpserver
=
Server
answer
=
self
.
cmdctl
.
command_handler
(
'shutdown'
,
None
)
rcode
,
msg
=
ccsession
.
parse_answer
(
answer
)
self
.
assertEqual
(
rcode
,
0
)
self
.
assertIsNone
(
msg
)
self
.
assertTrue
([
'shutdown'
],
called
)
def
test_command_handler_spec_update
(
self
):
# Should not be present
...
...
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