diff options
author | Jan Cholasta <jcholast@redhat.com> | 2016-04-27 09:34:04 +0200 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2016-05-25 16:06:26 +0200 |
commit | 60fa6ed4442279c2c42a72ee34c51b401e6a18d0 (patch) | |
tree | 8d3306d0154d82d6ae4fdac283fb55ad376acbb6 /ipatests | |
parent | a30bc8a351b983725c082e603f311e17a6d0178e (diff) | |
download | freeipa-60fa6ed4442279c2c42a72ee34c51b401e6a18d0.tar.gz freeipa-60fa6ed4442279c2c42a72ee34c51b401e6a18d0.tar.xz freeipa-60fa6ed4442279c2c42a72ee34c51b401e6a18d0.zip |
frontend: merge baseldap.CallbackRegistry into Command
Also make it possible for subclasses to introduce new callback types.
https://fedorahosted.org/freeipa/ticket/4739
Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipatests')
-rw-r--r-- | ipatests/test_xmlrpc/test_baseldap_plugin.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ipatests/test_xmlrpc/test_baseldap_plugin.py b/ipatests/test_xmlrpc/test_baseldap_plugin.py index 6764b1051..faec5e598 100644 --- a/ipatests/test_xmlrpc/test_baseldap_plugin.py +++ b/ipatests/test_xmlrpc/test_baseldap_plugin.py @@ -26,6 +26,7 @@ import ldap from ipapython.dn import DN from ipapython import ipaldap from ipalib import errors +from ipalib.frontend import Command from ipalib.plugins import baseldap from ipatests.util import assert_deepequal import pytest @@ -33,7 +34,7 @@ import pytest @pytest.mark.tier0 def test_exc_wrapper(): - """Test the CallbackInterface._exc_wrapper helper method""" + """Test the BaseLDAPCommand._exc_wrapper helper method""" handled_exceptions = [] class test_callback(baseldap.BaseLDAPCommand): @@ -77,8 +78,8 @@ def test_exc_wrapper(): @pytest.mark.tier0 def test_callback_registration(): - class callbacktest_base(baseldap.CallbackInterface): - _callback_registry = dict(test={}) + class callbacktest_base(Command): + callback_types = Command.callback_types + ('test',) def test_callback(self, param): messages.append(('Base test_callback', param)) |