From 2a41db33c6d9f6efa826e16d91eba76defe899d2 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Fri, 24 Oct 2008 15:35:58 -0600 Subject: Env._bootstrap() now raises StandardError if called more than once --- tests/test_ipalib/test_config.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/test_ipalib/test_config.py') diff --git a/tests/test_ipalib/test_config.py b/tests/test_ipalib/test_config.py index 39dc7906..67eedd14 100644 --- a/tests/test_ipalib/test_config.py +++ b/tests/test_ipalib/test_config.py @@ -197,6 +197,8 @@ class test_Env(ClassChecker): def bootstrap(self, **overrides): o = self.cls() o._bootstrap(**overrides) + e = raises(StandardError, o._bootstrap) + assert str(e) == 'Env._bootstrap() already called' return o def test_bootstrap(self): -- cgit