diff options
Diffstat (limited to 'ipalib/tests/tstutil.py')
-rw-r--r-- | ipalib/tests/tstutil.py | 7 |
1 files changed, 7 insertions, 0 deletions
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()') |