Skip to content
GitLab
Menu
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
a0bb482b
Commit
a0bb482b
authored
Jul 27, 2011
by
Naoki Kambe
Browse files
[trac930] add a test pattern which the set command with a
non-existent item name is sent
parent
cebd7e35
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/stats/tests/b10-stats_test.py
View file @
a0bb482b
...
...
@@ -483,6 +483,15 @@ class TestStats(unittest.TestCase):
self
.
stats
.
mccs
.
specification
=
isc
.
config
.
module_spec
.
ModuleSpec
(
{
"module_name"
:
self
.
stats
.
module_name
,
"statistics"
:
[]
}
)
self
.
assertEqual
(
self
.
stats
.
command_set
(
owner
=
'Stats'
,
data
=
{
'lname'
:
'_foo_@_bar_'
}),
isc
.
config
.
create_answer
(
1
,
"specified module name and/or statistics data are incorrect:"
+
" unknown item lname"
))
self
.
stats
.
statistics_data
[
'Stats'
]
=
{}
self
.
stats
.
mccs
.
specification
=
isc
.
config
.
module_spec
.
ModuleSpec
(
{
"module_name"
:
self
.
stats
.
module_name
}
)
self
.
assertEqual
(
self
.
stats
.
command_set
(
owner
=
'Stats'
,
data
=
{
'lname'
:
'_foo_@_bar_'
}),
isc
.
config
.
create_answer
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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