summaryrefslogtreecommitdiffstats
path: root/ipalib/tests/test_plugable.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-08-14 17:29:13 +0000
committerJason Gerard DeRose <jderose@redhat.com>2008-08-14 17:29:13 +0000
commit87cad5078a3c9ef7a978c85905309ee7d3ec194d (patch)
tree5eff8a62f6290093786212747b2756d12cc832bc /ipalib/tests/test_plugable.py
parentb403fd822b76a7deffe8110fbeb7993ef3cac3a5 (diff)
downloadfreeipa.git-87cad5078a3c9ef7a978c85905309ee7d3ec194d.tar.gz
freeipa.git-87cad5078a3c9ef7a978c85905309ee7d3ec194d.tar.xz
freeipa.git-87cad5078a3c9ef7a978c85905309ee7d3ec194d.zip
160: DictProxy now checks type of d in __init__(); updated unit tests
Diffstat (limited to 'ipalib/tests/test_plugable.py')
-rw-r--r--ipalib/tests/test_plugable.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ipalib/tests/test_plugable.py b/ipalib/tests/test_plugable.py
index 5c907dc7..2854ee6a 100644
--- a/ipalib/tests/test_plugable.py
+++ b/ipalib/tests/test_plugable.py
@@ -461,6 +461,8 @@ class test_DictProxy(ClassChecker):
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):
cnt = 10