#NEWLINE# @ patch ( 'datetime.date' ) #NEWLINE# def test_lastyear( self , date_patch ) : #NEWLINE# #INDENT# date_patch . today . return_value = self . first_performance #NEWLINE# ( start_date , end_date ) = get_daterange_start_end_dates ( 'lastyear' ) #NEWLINE# self . assertEqual ( start_date , datetime . date ( year = 1828 , month = 1 , day = 1 ) ) #NEWLINE# self . assertEqual ( end_date , datetime . date ( year = 1828 , month = 12 , day = 31 ) )