summaryrefslogtreecommitdiffstats
path: root/ipalib/tests/test_plugable.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/tests/test_plugable.py')
-rw-r--r--ipalib/tests/test_plugable.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/ipalib/tests/test_plugable.py b/ipalib/tests/test_plugable.py
index a9a6492d1..6949fdeb1 100644
--- a/ipalib/tests/test_plugable.py
+++ b/ipalib/tests/test_plugable.py
@@ -161,6 +161,13 @@ def test_Proxy():
assert getattr(p, name)(1) == 3
assert read_only(p, name)(1) == 3
+ # Test cloning:
+ i = do_something()
+ p = CommandProxy(i)
+ c = p._clone('do_a_thing')
+ assert isinstance(c, CommandProxy)
+ assert c.name == 'do_a_thing'
+
def test_Registrar():
class Base1(object):