diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-08-15 05:19:02 +0000 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-08-15 05:19:02 +0000 |
commit | ab10f0843be45529925a226dc54a9fd0a30ad159 (patch) | |
tree | 78a01816c55f81e557d0416b2b1e4b4c95df31c8 /ipalib/tests/test_plugable.py | |
parent | a24f2121d553644513dc90d423b9ac968de34bc2 (diff) | |
download | freeipa.git-ab10f0843be45529925a226dc54a9fd0a30ad159.tar.gz freeipa.git-ab10f0843be45529925a226dc54a9fd0a30ad159.tar.xz freeipa.git-ab10f0843be45529925a226dc54a9fd0a30ad159.zip |
179: DictProxy now has __call__() method that iterates through the values; removed __call__() method from NameSpace as it subclasses from DictProxys; DictProxy unit tests now test __call__()
Diffstat (limited to 'ipalib/tests/test_plugable.py')
-rw-r--r-- | ipalib/tests/test_plugable.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ipalib/tests/test_plugable.py b/ipalib/tests/test_plugable.py index aece3fb8..44067b80 100644 --- a/ipalib/tests/test_plugable.py +++ b/ipalib/tests/test_plugable.py @@ -192,6 +192,7 @@ class test_DictProxy(ClassChecker): # Check initial state assert len(proxy) == len(target) assert list(proxy) == sorted(target) + assert list(proxy()) == [target[k] for k in sorted(target)] assert key not in proxy raises(KeyError, getitem, proxy, key) @@ -199,6 +200,7 @@ class test_DictProxy(ClassChecker): target[key] = val assert len(proxy) == len(target) assert list(proxy) == sorted(target) + assert list(proxy()) == [target[k] for k in sorted(target)] # Verify TypeError is raised trying to set/del via proxy raises(TypeError, setitem, proxy, key, val) |