diff options
author | Jan Cholasta <jcholast@redhat.com> | 2015-06-22 10:59:35 +0000 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2015-07-01 13:05:30 +0000 |
commit | 4b277d04771bece11f5cc9fe04cc04d3f2ded165 (patch) | |
tree | 050034eff53e762a494490b0aeb5df8e24a133a0 /ipatests/test_ipalib/test_plugable.py | |
parent | 1a21fd971ccc26cf8f06d1ba965b263856be56c6 (diff) | |
download | freeipa-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.py | 5 |
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() |