diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-08-14 23:49:36 +0000 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-08-14 23:49:36 +0000 |
commit | 88a5b3ae2587ef71efecc1b59eb9ec94e09cacad (patch) | |
tree | 86b4830c463c110f5c130501a78f6567457c11fe /ipalib/tests/test_plugable.py | |
parent | 07cd5372779fe88b1dd6c252e157b48a944c4669 (diff) | |
download | freeipa.git-88a5b3ae2587ef71efecc1b59eb9ec94e09cacad.tar.gz freeipa.git-88a5b3ae2587ef71efecc1b59eb9ec94e09cacad.tar.xz freeipa.git-88a5b3ae2587ef71efecc1b59eb9ec94e09cacad.zip |
169: Renamed DictProxy to MagicDict
Diffstat (limited to 'ipalib/tests/test_plugable.py')
-rw-r--r-- | ipalib/tests/test_plugable.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ipalib/tests/test_plugable.py b/ipalib/tests/test_plugable.py index 839451b5..ba665447 100644 --- a/ipalib/tests/test_plugable.py +++ b/ipalib/tests/test_plugable.py @@ -482,18 +482,18 @@ class test_NameSpace(ClassChecker): no_set(ns, name) -class test_DictProxy(ClassChecker): +class test_MagicDict(ClassChecker): """ - Tests the `plugable.DictProxy` class. + Tests the `plugable.MagicDict` class. """ - _cls = plugable.DictProxy + _cls = plugable.MagicDict def test_class(self): assert self.cls.__bases__ == (plugable.ReadOnly,) for non_dict in ('hello', 69, object): raises(AssertionError, self.cls, non_dict) - def test_DictProxy(self): + def test_MagicDict(self): cnt = 10 keys = [] d = dict() @@ -559,7 +559,7 @@ def test_Registrar(): for base in [Base1, Base2]: assert base.__name__ in r dp = r[base.__name__] - assert type(dp) is plugable.DictProxy + assert type(dp) is plugable.MagicDict assert len(dp) == 0 # Check that TypeError is raised trying to register something that isn't @@ -573,7 +573,7 @@ def test_Registrar(): # Check that registration works r(plugin1) dp = r['Base1'] - assert type(dp) is plugable.DictProxy + assert type(dp) is plugable.MagicDict assert len(dp) == 1 assert r.Base1 is dp assert dp['plugin1'] is plugin1 |