From 7db3aae1b26588b3650dae442b07dca0f33ab0c8 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Tue, 12 Aug 2008 23:40:36 +0000 Subject: 123: API.finalize() now raises AssetionError if called more than once; added corresponding unit tests --- ipalib/tests/test_plugable.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ipalib/tests/test_plugable.py') 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) -- cgit