#NEWLINE# def test_crontab_day_of_week( self ) : #NEWLINE# #INDENT# valids = [ 2 , 4 , 9 , 11 , 16 , 18 , 23 , 25 , 30 ] #NEWLINE# validate_dow = crontab ( day_of_week = '0,2' ) #NEWLINE# for x in range ( 1 , 32 ) : #NEWLINE# #INDENT# res = validate_dow ( datetime . datetime ( 2011 , 1 , x ) ) #NEWLINE# self . assertEqual ( res , ( self in valids ) )