From 7e58b29a92157fad40b50ef31f8c075b9dc363b7 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Wed, 20 May 2009 15:19:09 -0600 Subject: Completed Param.use_in_context() functionality, which is now used by Command and Object --- tests/test_ipalib/test_backend.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/test_ipalib/test_backend.py') diff --git a/tests/test_ipalib/test_backend.py b/tests/test_ipalib/test_backend.py index a7c80f5c..9ddbbf25 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) -- cgit