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
09149599
Commit
09149599
authored
Jan 03, 2011
by
Jelte Jansen
Browse files
add tests from #468
git-svn-id:
svn://bind10.isc.org/svn/bind10/trunk@4124
e5f2f494-b856-4b98-b285-d166d9295462
parent
625080ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/python/isc/config/tests/module_spec_test.py
View file @
09149599
...
...
@@ -109,6 +109,9 @@ class TestModuleSpec(unittest.TestCase):
return
dd
.
validate_command
(
cmd_name
,
params
)
def
test_command_validation
(
self
):
# tests for a command that doesn't take an argument
self
.
assertEqual
(
True
,
self
.
read_spec_file
(
"spec2.spec"
).
validate_command
(
"shutdown"
,
None
));
self
.
assertEqual
(
False
,
self
.
read_spec_file
(
"spec2.spec"
).
validate_command
(
"shutdown"
,
'{"val": 1}'
));
self
.
assertEqual
(
True
,
self
.
validate_command_params
(
"spec27.spec"
,
"data22_1.data"
,
'cmd1'
))
self
.
assertEqual
(
False
,
self
.
validate_command_params
(
"spec27.spec"
,
"data22_2.data"
,
'cmd1'
))
self
.
assertEqual
(
False
,
self
.
validate_command_params
(
"spec27.spec"
,
"data22_3.data"
,
'cmd1'
))
...
...
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