Always set the effective date of a comment to the same value as the creation date.

svn path=/plone.app.discussion/trunk/; revision=46019
This commit is contained in:
Timo Stollenwerk
2010-11-29 17:36:52 +00:00
parent b26d5a5a62
commit f0cecaf274
3 changed files with 12 additions and 2 deletions
@@ -151,6 +151,8 @@ class CommentIndexersTest(PloneTestCase):
# Test if created, modified, effective etc. are set correctly
self.assertEquals(catalog.created(self.comment)(),
DateTime(2006, 9, 17, 14, 18, 12))
self.assertEquals(catalog.effective(self.comment)(),
DateTime(2006, 9, 17, 14, 18, 12))
self.assertEquals(catalog.modified(self.comment)(),
DateTime(2008, 3, 12, 7, 32, 52))