Esempio n. 1
0
    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 )
Esempio n. 2
0
    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)
Esempio n. 3
0
    def test_ListOfDefaultDates(self):

        from Products.CMFTopic.DateCriteria import FriendlyDateCriterion
        friendly = FriendlyDateCriterion('foo', 'foofield')

        d = friendly.defaultDateOptions()
        self.assertEqual(d[1][0], 2)
Esempio n. 4
0
    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 )