[CMF-checkins] CVS: Products/CMFDefault/tests - test_Discussions.py:1.8
Tres Seaver
tseaver@zope.com
Mon, 3 Dec 2001 12:19:04 -0500
Update of /cvs-repository/Products/CMFDefault/tests
In directory cvs.zope.org:/tmp/cvs-serv19317/tests
Modified Files:
test_Discussions.py
Log Message:
- Add 'DiscussionItemContainer.getReply'.
=== Products/CMFDefault/tests/test_Discussions.py 1.7 => 1.8 ===
assert len( talkback.getReplies() ) == 0
- talkback.createReply( title='test'
- , text='blah'
- )
+ reply_id = talkback.createReply( title='test', text='blah' )
assert talkback.hasReplies( test )
assert len( talkback.getReplies() ) == 1
+ assert talkback.getReply( reply_id )
reply1 = talkback.getReplies()[0]
items = talkback._container.items()