summaryrefslogtreecommitdiffstats
path: root/ipalib/tests/test_base2.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/tests/test_base2.py')
-rw-r--r--ipalib/tests/test_base2.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/ipalib/tests/test_base2.py b/ipalib/tests/test_base2.py
index cdf96bdb..398f6c63 100644
--- a/ipalib/tests/test_base2.py
+++ b/ipalib/tests/test_base2.py
@@ -140,3 +140,11 @@ def test_Registar():
assert cmd.obj is obj
assert r.commands.kinit.obj is None
+
+ for cmd in r.commands():
+ raised = False
+ try:
+ cmd.obj = None
+ except exceptions.TwiceSetError:
+ raised = True
+ assert raised