예제 #1
0
파일: test_DateC.py 프로젝트: goschtl/zope
    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
파일: test_DateC.py 프로젝트: goschtl/zope
    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 )