From 8a6041b7978d370418e99df8b9fc06b2055a39e6 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Thu, 7 Aug 2008 04:51:21 +0000 Subject: 73: Started work on validation rules for opt; added corresponding unit tests --- ipalib/tests/tstutil.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ipalib/tests/tstutil.py') diff --git a/ipalib/tests/tstutil.py b/ipalib/tests/tstutil.py index cdac4547..d2de3b86 100644 --- a/ipalib/tests/tstutil.py +++ b/ipalib/tests/tstutil.py @@ -86,7 +86,14 @@ def read_only(obj, name, value='some_new_obj'): return getattr(obj, name) +def is_prop(prop): + return type(prop) is property + + class ClassChecker(object): def new(self, *args, **kw): return self.cls(*args, **kw) + + def get_sub(self): + raise NotImplementedError('get_sub()') -- cgit