#NEWLINE# def test_date_list_order( self ) : #NEWLINE# #INDENT# 'date_list should be sorted ascending in month view' #NEWLINE# _make_books ( 10 , base_date = datetime . date ( 2011 , 12 , 25 ) ) #NEWLINE# res = self . client . get ( '/dates/books/2011/dec/' ) #NEWLINE# self . assertEqual ( list ( res . context [ 'date_list' ] ) , list ( sorted ( res . context [ 'date_list' ] ) ) )