Commit f6c2eac2 authored by Ivan Tyagov's avatar Ivan Tyagov

test RSS generation by testing indirectly its "get" method (new post should be first in list).

parent 42548b33
......@@ -132,6 +132,13 @@ class TestERP5Discussion(ERP5TypeTestCase):
self.assertSameSet([discussion_thread_object1], [x.getObject() for x in web_section1.getDocumentValueList()])
self.assertSameSet([discussion_thread_object2], [x.getObject() for x in web_section2.getDocumentValueList()])
# test RSS generation by testing indirectly its "get" method
# (new post should be first in list)
current_post_list = list(discussion_thread_object1.objectValues())
new_post = discussion_thread_object1.newContent()
self.tic()
self.assertSameSet([new_post] + current_post_list, web_section1.WebSection_getLatestDiscussionPostList())
# test archiving threads so the do not belong any more to web section document list
discussion_thread_object1.archive()
discussion_thread_object2.archive()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment