summaryrefslogtreecommitdiffstats
path: root/ipatests/test_ipalib/test_plugable.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipatests/test_ipalib/test_plugable.py')
-rw-r--r--ipatests/test_ipalib/test_plugable.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ipatests/test_ipalib/test_plugable.py b/ipatests/test_ipalib/test_plugable.py
index f5434e8a4..99554d4f8 100644
--- a/ipatests/test_ipalib/test_plugable.py
+++ b/ipatests/test_ipalib/test_plugable.py
@@ -88,7 +88,10 @@ class test_Plugin(ClassChecker):
"""
Test the `ipalib.plugable.Plugin.finalize` method.
"""
- api = 'the api instance'
+ class api(object):
+ @staticmethod
+ def is_production_mode():
+ return False
o = self.cls(api)
assert not o.__islocked__()
o.finalize()