[Zope-CVS] CVS: Products/Ape/lib/apelib/tests - zope2testbase.py:1.3
Shane Hathaway
shane@zope.com
Sat, 12 Apr 2003 16:53:29 -0400
Update of /cvs-repository/Products/Ape/lib/apelib/tests
In directory cvs.zope.org:/tmp/cvs-serv28771/lib/apelib/tests
Modified Files:
zope2testbase.py
Log Message:
Corrected an intermittent ordering dependency bug
=== Products/Ape/lib/apelib/tests/zope2testbase.py 1.2 => 1.3 ===
--- Products/Ape/lib/apelib/tests/zope2testbase.py:1.2 Fri Apr 11 23:39:37 2003
+++ Products/Ape/lib/apelib/tests/zope2testbase.py Sat Apr 12 16:53:28 2003
@@ -299,7 +299,9 @@
self.assertEqual(len(ff.data), 1)
user = ff.data['ned']
self.assertEqual(user.name, 'ned')
- self.assertEqual(user.roles, ('Knight', 'King'))
+ self.assertEqual(len(user.roles), 2)
+ self.assert_('Knight' in user.roles)
+ self.assert_('King' in user.roles)
self.assertEqual(user.domains, ('localhost',))
self.assert_(user is not u)
finally: