summaryrefslogtreecommitdiffstats
path: root/ipalib/tests/test_plugable.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-08-12 23:40:36 +0000
committerJason Gerard DeRose <jderose@redhat.com>2008-08-12 23:40:36 +0000
commit7db3aae1b26588b3650dae442b07dca0f33ab0c8 (patch)
tree4ab00720041d20b09f87ff74abc965a3f307746d /ipalib/tests/test_plugable.py
parent64054a673c23b543450741fa11333bc627efeca3 (diff)
downloadfreeipa.git-7db3aae1b26588b3650dae442b07dca0f33ab0c8.tar.gz
freeipa.git-7db3aae1b26588b3650dae442b07dca0f33ab0c8.tar.xz
freeipa.git-7db3aae1b26588b3650dae442b07dca0f33ab0c8.zip
123: API.finalize() now raises AssetionError if called more than once; added corresponding unit tests
Diffstat (limited to 'ipalib/tests/test_plugable.py')
-rw-r--r--ipalib/tests/test_plugable.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ipalib/tests/test_plugable.py b/ipalib/tests/test_plugable.py
index 3b082082..89bb948e 100644
--- a/ipalib/tests/test_plugable.py
+++ b/ipalib/tests/test_plugable.py
@@ -622,3 +622,6 @@ def test_API():
assert proxy.name == plugin_name
assert read_only(ns, plugin_name) is proxy
assert read_only(proxy, 'method')(7) == 7 + b
+
+ # Test that calling finilize again raises AssertionError:
+ raises(AssertionError, api.finalize)