summaryrefslogtreecommitdiffstats
path: root/ipatests/test_ipalib/test_plugable.py
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2015-06-22 10:59:35 +0000
committerJan Cholasta <jcholast@redhat.com>2015-07-01 13:05:30 +0000
commit4b277d04771bece11f5cc9fe04cc04d3f2ded165 (patch)
tree050034eff53e762a494490b0aeb5df8e24a133a0 /ipatests/test_ipalib/test_plugable.py
parent1a21fd971ccc26cf8f06d1ba965b263856be56c6 (diff)
downloadfreeipa-4b277d04771bece11f5cc9fe04cc04d3f2ded165.tar.gz
freeipa-4b277d04771bece11f5cc9fe04cc04d3f2ded165.tar.xz
freeipa-4b277d04771bece11f5cc9fe04cc04d3f2ded165.zip
plugable: Change is_production_mode to method of API
https://fedorahosted.org/freeipa/ticket/3090 Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
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()