Make test coverage happy. 1 second seems to be not enough to create a comment when running the test coverage.

svn path=/plone.app.discussion/trunk/; revision=33309
This commit is contained in:
Timo Stollenwerk 2010-01-23 07:26:19 +00:00
parent 0c1d32d7c6
commit 6ca20c7514

View File

@ -552,7 +552,7 @@ class ConversationTest(PloneTestCase):
# check if the latest comment has been updated
# the latest comment should be exactly four days old
self.assert_(conversation.last_comment_date < datetime.now() - timedelta(days=3, hours=23, minutes=59, seconds=59))
self.assert_(conversation.last_comment_date > datetime.now() - timedelta(days=4, seconds=1))
self.assert_(conversation.last_comment_date > datetime.now() - timedelta(days=4, seconds=2))
def test_get_comments_full(self):
pass