From 87cad5078a3c9ef7a978c85905309ee7d3ec194d Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Thu, 14 Aug 2008 17:29:13 +0000 Subject: 160: DictProxy now checks type of d in __init__(); updated unit tests --- ipalib/plugable.py | 1 + 1 file changed, 1 insertion(+) (limited to 'ipalib/plugable.py') diff --git a/ipalib/plugable.py b/ipalib/plugable.py index 66cb18fe..ffef8d64 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__() -- cgit