[CMF-checkins] CVS: CMF/CMFCore/tests -
test_PortalFolder.py:1.24.2.1
Yvo Schubbe
schubbe at web.de
Fri Dec 19 09:49:44 EST 2003
Update of /cvs-repository/CMF/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv9212/CMFCore/tests
Modified Files:
Tag: yuppie-collector025-branch
test_PortalFolder.py
Log Message:
- ContentFilter now works with listCreators
=== CMF/CMFCore/tests/test_PortalFolder.py 1.24 => 1.24.2.1 ===
--- CMF/CMFCore/tests/test_PortalFolder.py:1.24 Sun Dec 7 15:44:07 2003
+++ CMF/CMFCore/tests/test_PortalFolder.py Fri Dec 19 09:49:43 2003
@@ -448,13 +448,13 @@
def test_Creator( self ):
cfilter = ContentFilter( Creator='moe' )
dummy = self.dummy
- assert not cfilter( dummy )
- dummy.creator = 'curly'
- assert not cfilter( dummy )
- dummy.creator = 'moe'
- self.failUnless(cfilter( dummy ))
- dummy.creator = 'shmoe'
- assert cfilter( dummy )
+ self.failIf( cfilter(dummy) )
+ dummy.creators = ('curly',)
+ self.failIf( cfilter(dummy) )
+ dummy.creators = ('moe',)
+ self.failUnless( cfilter(dummy) )
+ dummy.creators = ('moe', 'curly')
+ self.failUnless( cfilter(dummy) )
desc = str( cfilter )
lines = desc.split('; ')
self.assertEqual(len( lines ),1)
More information about the CMF-checkins
mailing list