summaryrefslogtreecommitdiffstats
path: root/ipatests/test_ipalib/test_backend.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipatests/test_ipalib/test_backend.py')
-rw-r--r--ipatests/test_ipalib/test_backend.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ipatests/test_ipalib/test_backend.py b/ipatests/test_ipalib/test_backend.py
index 121c4745b..91eb92057 100644
--- a/ipatests/test_ipalib/test_backend.py
+++ b/ipatests/test_ipalib/test_backend.py
@@ -186,7 +186,7 @@ class test_Executioner(ClassChecker):
def execute(self, *args, **options):
assert type(args[1]) is tuple
return dict(result=args + (options,))
- api.register(echo)
+ api.add_plugin(echo)
class good(Command):
def execute(self, **options):
@@ -194,12 +194,12 @@ class test_Executioner(ClassChecker):
name='nurse',
error=u'Not naughty!',
)
- api.register(good)
+ api.add_plugin(good)
class bad(Command):
def execute(self, **options):
raise ValueError('This is private.')
- api.register(bad)
+ api.add_plugin(bad)
class with_name(Command):
"""
@@ -208,7 +208,7 @@ class test_Executioner(ClassChecker):
takes_options = 'name'
def execute(self, **options):
return dict(result=options['name'].upper())
- api.register(with_name)
+ api.add_plugin(with_name)
api.finalize()
o = self.cls()