diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2009-05-20 15:19:09 -0600 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2009-05-21 14:32:45 -0400 |
commit | 7e58b29a92157fad40b50ef31f8c075b9dc363b7 (patch) | |
tree | 5f541cde18209bda0bd5df7c34365ce59d4c70b2 /tests/test_ipalib/test_backend.py | |
parent | 7b93f7bbd7d52132503a3c5691841c3e757616f9 (diff) | |
download | freeipa-7e58b29a92157fad40b50ef31f8c075b9dc363b7.tar.gz freeipa-7e58b29a92157fad40b50ef31f8c075b9dc363b7.tar.xz freeipa-7e58b29a92157fad40b50ef31f8c075b9dc363b7.zip |
Completed Param.use_in_context() functionality, which is now used by Command and Object
Diffstat (limited to 'tests/test_ipalib/test_backend.py')
-rw-r--r-- | tests/test_ipalib/test_backend.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_ipalib/test_backend.py b/tests/test_ipalib/test_backend.py index a7c80f5cb..9ddbbf252 100644 --- a/tests/test_ipalib/test_backend.py +++ b/tests/test_ipalib/test_backend.py @@ -172,8 +172,8 @@ class test_Executioner(ClassChecker): (api, home) = create_test_api(in_server=True) class echo(Command): - takes_args = ['arg1', 'arg2+'] - takes_options = ['option1?', 'option2?'] + takes_args = ('arg1', 'arg2+') + takes_options = ('option1?', 'option2?') def execute(self, *args, **options): assert type(args[1]) is tuple return args + (options,) @@ -196,7 +196,7 @@ class test_Executioner(ClassChecker): """ Test that a kwarg named 'name' can be used. """ - takes_options=['name'] + takes_options = 'name' def execute(self, **options): return options['name'].upper() api.register(with_name) |