[Zope-Checkins] SVN: Zope/trunk/src/Products/ZCatalog/tests/test_brains.py Simplify an assert
Hanno Schlichting
hannosch at hannosch.eu
Sat Jul 31 17:47:40 EDT 2010
Log message for revision 115294:
Simplify an assert
Changed:
U Zope/trunk/src/Products/ZCatalog/tests/test_brains.py
-=-
Modified: Zope/trunk/src/Products/ZCatalog/tests/test_brains.py
===================================================================
--- Zope/trunk/src/Products/ZCatalog/tests/test_brains.py 2010-07-31 21:45:36 UTC (rev 115293)
+++ Zope/trunk/src/Products/ZCatalog/tests/test_brains.py 2010-07-31 21:47:39 UTC (rev 115294)
@@ -65,8 +65,7 @@
# This is sooooo ugly
def unrestrictedTraverse(self, path, default=None):
- # for these tests...
- assert path == '' or path == ('') or path == [''], path
+ assert path in ['', ('', ), ['']], path
return self
def restrictedTraverse(self, path, default=_marker):
More information about the Zope-Checkins
mailing list