From 149429f3057e3ae934e660e3276c9e8d3c935d17 Mon Sep 17 00:00:00 2001 From: Martin Nagy Date: Thu, 2 Oct 2008 20:24:05 +0200 Subject: Environment is now subclassed from object, rather then dict. Added tests for Environment and config.py --- ipalib/tests/tstutil.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ipalib/tests/tstutil.py') diff --git a/ipalib/tests/tstutil.py b/ipalib/tests/tstutil.py index 7586d08c..743716a0 100644 --- a/ipalib/tests/tstutil.py +++ b/ipalib/tests/tstutil.py @@ -55,7 +55,7 @@ def raises(exception, callback, *args, **kw): def getitem(obj, key): """ - Works like getattr but for dictionary interface. Uses this in combination + Works like getattr but for dictionary interface. Use this in combination with raises() to test that, for example, KeyError is raised. """ return obj[key] @@ -63,7 +63,7 @@ def getitem(obj, key): def setitem(obj, key, value): """ - Works like setattr but for dictionary interface. Uses this in combination + Works like setattr but for dictionary interface. Use this in combination with raises() to test that, for example, TypeError is raised. """ obj[key] = value @@ -71,7 +71,7 @@ def setitem(obj, key, value): def delitem(obj, key): """ - Works like delattr but for dictionary interface. Uses this in combination + Works like delattr but for dictionary interface. Use this in combination with raises() to test that, for example, TypeError is raised. """ del obj[key] -- cgit