Commit a0bb482b authored by Naoki Kambe's avatar Naoki Kambe
Browse files

[trac930] add a test pattern which the set command with a

non-existent item name is sent
parent cebd7e35
......@@ -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(
......
Supports Markdown
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