Commit ae0f3806 authored by Tristan Cavelier's avatar Tristan Cavelier

testERP5Discussion: fix error in test

parent 935c3bb2
...@@ -197,7 +197,7 @@ class TestERP5Discussion(ERP5TypeTestCase): ...@@ -197,7 +197,7 @@ class TestERP5Discussion(ERP5TypeTestCase):
current_post_list = list(discussion_thread_object1.objectValues()) current_post_list = list(discussion_thread_object1.objectValues())
new_post = discussion_thread_object1.newContent() new_post = discussion_thread_object1.newContent()
self.tic() self.tic()
self.assertSameSet([new_post] + current_post_list, web_section1.WebSection_getLatestDiscussionPostList()) self.assertSameSet([new_post] + current_post_list, [x.getObject() for x in web_section1.WebSection_getLatestDiscussionPostList()])
# test archiving threads so the do not belong any more to web section document list # test archiving threads so the do not belong any more to web section document list
discussion_thread_object1.archive() discussion_thread_object1.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