[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Security/tests - testSecurityManagement.py:1.1.2.4
Tres Seaver
tseaver@zope.com
Wed, 12 Dec 2001 13:03:52 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/Security/tests
In directory cvs.zope.org:/tmp/cvs-serv2133/App/Security/tests
Modified Files:
Tag: Zope-3x-branch
testSecurityManagement.py
Log Message:
- Fix security manager ordering dependencies in tests.
=== Zope3/lib/python/Zope/App/Security/tests/testSecurityManagement.py 1.1.2.3 => 1.1.2.4 ===
_oldPolicy = None
- def tearDown( self ):
+ def setUp( self ):
from Zope.App.Security.SecurityManagement import noSecurityManager
noSecurityManager()
self._restorePolicy()
+ tearDown = setUp
+
def test_import( self ):
from Zope.App.Security import SecurityManagement
from Zope.App.Security.ISecurityManagement import ISecurityManagement
@@ -40,7 +42,7 @@
some_user = []
other_user = []
old = newSecurityManager( some_user )
- self.failUnless( old is None )
+ self.assertEqual( old, None )
old = newSecurityManager( other_user )
self.failUnless( old is not None )