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
Sebastian Schrader
Kea
Commits
5207d193
Commit
5207d193
authored
Aug 23, 2013
by
Naoki Kambe
Browse files
[2781] correct description of test_get_multi_module_list_initsessiontimeout()
and revise the test code to match this
parent
c3473496
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/stats/tests/stats_test.py
View file @
5207d193
...
...
@@ -1384,14 +1384,14 @@ class TestStats(unittest.TestCase):
self
.
assertListEqual
([],
stat
.
_get_multi_module_list
())
def
test_get_multi_module_list_initsessiontimeout
(
self
):
"""Test _get_multi_module_list() r
eturns an empty list if rcp_call()
raise a InitSee
ion
T
imeout
exception
"""
"""Test _get_multi_module_list() r
aises an InitSeeionTimeout exception
if a CC sess
ion
t
ime
s
out
in rcp_call()
"""
# InitSeeionTimeout case
stat
=
MyStats
()
ex
=
stats
.
Init
SessionTimeout
ex
=
isc
.
cc
.
session
.
SessionTimeout
def
__raise
(
*
x
):
raise
ex
(
*
x
)
stat
.
mccs
.
rpc_call
=
lambda
x
,
y
:
__raise
()
self
.
assertRaises
(
ex
,
stat
.
_get_multi_module_list
)
self
.
assertRaises
(
stats
.
InitSessionTimeout
,
stat
.
_get_multi_module_list
)
def
test_query_statistics
(
self
):
"""Test _query_statistics returns a list of pairs of module and
...
...
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