[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Security/tests - testPublicClass.py:1.1.2.3

Tres Seaver tseaver@zope.com
Thu, 13 Dec 2001 16:54:04 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Security/tests
In directory cvs.zope.org:/tmp/cvs-serv13446/tests

Modified Files:
      Tag: Zope-3x-branch
	testPublicClass.py 
Log Message:
 - Clean up metaconfig registry in tearDown.

=== Zope3/lib/python/Zope/App/Security/tests/testPublicClass.py 1.1.2.2 => 1.1.2.3 ===
 from Zope.App.Security import publicClass
 from Zope.App.Security.metaConfigure import metaConfigure
-metaConfigure()
+from Zope.Configuration.meta import _clear as metaclear
 
 # So we can use config parser to exercise publicClass stuff.
 from cStringIO import StringIO
@@ -30,6 +30,7 @@
 class Test(unittest.TestCase):
 
     def setUp(self):
+        metaConfigure()
         class C:
             __implements__ = I
             def m1(self):
@@ -43,6 +44,7 @@
         self.assertState()
 
     def tearDown(self):
+        metaclear()
         testmodule.test_class = None
 
     def assertState(self, instP=NOTSET,