From c6f69e1c66b86f8f375a3c561922a42fdc0b1afb Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Wed, 6 Aug 2008 02:00:18 +0000 Subject: 54: Added plugable.Proxy._clone() method; fleshed out public.obj; updated unit tests; port ipa script --- ipalib/tests/test_plugable.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ipalib/tests/test_plugable.py') diff --git a/ipalib/tests/test_plugable.py b/ipalib/tests/test_plugable.py index a9a6492d..6949fdeb 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): -- cgit