diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-08-14 17:29:13 +0000 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-08-14 17:29:13 +0000 |
commit | 87cad5078a3c9ef7a978c85905309ee7d3ec194d (patch) | |
tree | 5eff8a62f6290093786212747b2756d12cc832bc /ipalib/plugable.py | |
parent | b403fd822b76a7deffe8110fbeb7993ef3cac3a5 (diff) | |
download | freeipa-87cad5078a3c9ef7a978c85905309ee7d3ec194d.tar.gz freeipa-87cad5078a3c9ef7a978c85905309ee7d3ec194d.tar.xz freeipa-87cad5078a3c9ef7a978c85905309ee7d3ec194d.zip |
160: DictProxy now checks type of d in __init__(); updated unit tests
Diffstat (limited to 'ipalib/plugable.py')
-rw-r--r-- | ipalib/plugable.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ipalib/plugable.py b/ipalib/plugable.py index 66cb18fe5..ffef8d643 100644 --- a/ipalib/plugable.py +++ b/ipalib/plugable.py @@ -484,6 +484,7 @@ class DictProxy(ReadOnly): """ :param d: The ``dict`` instance to proxy. """ + assert type(d) is dict, '`d` must be %r, got %r' % (dict, type(d)) self.__d = d self.__lock__() assert self.__islocked__() |