[CMF-checkins] CVS: CMF - test_Discussions.py:1.5

Jens Vagelpohl jens@digicool.com
Wed, 11 Jul 2001 17:55:28 -0400 (EDT)


Update of /cvs-repository/CMF/CMFDefault/tests
In directory korak.digicool.com:/tmp/cvs-serv19629

Modified Files:
	test_Discussions.py 
Log Message:
Changed tests to conform to the new signature of hasReplies




--- Updated File test_Discussions.py in package CMF --
--- test_Discussions.py	2001/06/19 19:00:03	1.4
+++ test_Discussions.py	2001/07/11 21:55:28	1.5
@@ -110,13 +110,13 @@
         talkback = self.discussion_tool.getDiscussionFor( test )
         assert talkback._getDiscussable() == test
         assert talkback._getDiscussable( outer=1 ) == test
-        assert not talkback.hasReplies()
+        assert not talkback.hasReplies( test )
         assert len( talkback.getReplies() ) == 0
 
         talkback.createReply( title='test'
                             , text='blah'
                             )
-        assert talkback.hasReplies()
+        assert talkback.hasReplies( test )
         assert len( talkback.getReplies() ) == 1
 
         reply1 = talkback.getReplies()[0]
@@ -137,7 +137,7 @@
                              , text='blah2'
                              )
         assert len( talkback._container ) == 2
-        assert talkback1.hasReplies()
+        assert talkback1.hasReplies( reply1 )
         assert len( talkback1.getReplies() ) == 1
         assert len( talkback.getReplies() ) == 1