示例#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 )
示例#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)
示例#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)
示例#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 )