def test_ListOfDefaultDates( self ): friendly = FriendlyDateCriterion( 'foo', 'foofield' ) d = friendly.defaultDateOptions() self.assertEqual( d[0][0], 0 ) self.assertEqual( d[1][0], 1 ) self.assertEqual( d[2][0], 2 )
def test_ListOfDefaultDates(self): friendly = FriendlyDateCriterion('foo', 'foofield') d = friendly.defaultDateOptions() self.assertEqual(d[0][0], 0) self.assertEqual(d[1][0], 1) self.assertEqual(d[2][0], 2)
def test_ListOfDefaultDates(self): from Products.CMFTopic.DateCriteria import FriendlyDateCriterion friendly = FriendlyDateCriterion('foo', 'foofield') d = friendly.defaultDateOptions() self.assertEqual(d[1][0], 2)
def test_ListOfDefaultDates( self ): from Products.CMFTopic.DateCriteria import FriendlyDateCriterion friendly = FriendlyDateCriterion( 'foo', 'foofield' ) d = friendly.defaultDateOptions() self.assertEqual( d[0][0], 0 ) self.assertEqual( d[1][0], 1 ) self.assertEqual( d[2][0], 2 )