From 9beb467d98cb16e09fcda5ebbeb27056dfff3a2d Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Tue, 1 Nov 2011 08:58:05 -0400 Subject: Fix attempted write to attribute of read-only object. Add new class "cachedproperty" for creating property-like attributes that cache the return value of a method call. Also fix few issues in the unit tests to enable them to succeed. ticket 1959 --- tests/test_ipalib/test_plugable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_ipalib') diff --git a/tests/test_ipalib/test_plugable.py b/tests/test_ipalib/test_plugable.py index 23b733096..3355e057a 100644 --- a/tests/test_ipalib/test_plugable.py +++ b/tests/test_ipalib/test_plugable.py @@ -247,7 +247,7 @@ class test_Plugin(ClassChecker): info = 'whatever' e = raises(StandardError, check) assert str(e) == \ - "check.info attribute ('whatever') conflicts with Plugin logger" + "info is already bound to tests.test_ipalib.test_plugable.check()" def test_set_api(self): """ -- cgit