summaryrefslogtreecommitdiffstats
path: root/ipalib/tests/tstutil.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-08-07 04:51:21 +0000
committerJason Gerard DeRose <jderose@redhat.com>2008-08-07 04:51:21 +0000
commit8a6041b7978d370418e99df8b9fc06b2055a39e6 (patch)
tree331712c5f00560e1b6076e0e88360536043a8532 /ipalib/tests/tstutil.py
parentfadbae642053565be1d10bc5d6b40b151a97ff16 (diff)
downloadfreeipa.git-8a6041b7978d370418e99df8b9fc06b2055a39e6.tar.gz
freeipa.git-8a6041b7978d370418e99df8b9fc06b2055a39e6.tar.xz
freeipa.git-8a6041b7978d370418e99df8b9fc06b2055a39e6.zip
73: Started work on validation rules for opt; added corresponding unit tests
Diffstat (limited to 'ipalib/tests/tstutil.py')
-rw-r--r--ipalib/tests/tstutil.py7
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()')