def test_conversation_last_comment_date(self):
     self.assertTrue(isinstance(catalog.last_comment_date,
                             DelegatingIndexerFactory))
     self.assertEqual(catalog.last_comment_date(self.portal.doc1)(),
                       datetime(2009, 4, 12, 11, 12, 12))
     del self.conversation[self.new_id3]
     self.assertEqual(catalog.last_comment_date(self.portal.doc1)(),
                       datetime(2007, 12, 13, 4, 18, 12))
     del self.conversation[self.new_id2]
     del self.conversation[self.new_id1]
     self.assertEqual(catalog.last_comment_date(self.portal.doc1)(), None)
예제 #2
0
 def test_conversation_last_comment_date(self):
     self.assertTrue(
         isinstance(catalog.last_comment_date, DelegatingIndexerFactory))
     self.assertEqual(
         catalog.last_comment_date(self.portal.doc1)(),
         datetime(2009, 4, 12, 11, 12, 12))
     del self.conversation[self.new_id3]
     self.assertEqual(
         catalog.last_comment_date(self.portal.doc1)(),
         datetime(2007, 12, 13, 4, 18, 12))
     del self.conversation[self.new_id2]
     del self.conversation[self.new_id1]
     self.assertEqual(catalog.last_comment_date(self.portal.doc1)(), None)