#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# now = timezone . now ( ) #NEWLINE# one_month_ago = ( one_month_ago - timedelta ( days = 31 ) ) #NEWLINE# self . one_month_old = PressRelease . objects . create ( title = 'Data printer' , slug = 'ground-breaking-invention' , body = 'You can now turn data to real world objects' , release_date = one_month_ago ) #NEWLINE# one_day_ago = ( now - timedelta ( days = 1 ) ) #NEWLINE# self . one_day_old = PressRelease . objects . create ( title = 'Open Knowledge solves world hunger!' , slug = 'april-fools' , body = 'By turning food to data Open Knowledge solves world hunger' , release_date = one_day_ago ) #NEWLINE# ten_minutes_from_now = ( now + timedelta ( minutes = 10 ) ) #NEWLINE# self . in_ten_minutes = PressRelease . objects . create ( title = 'Did you believe us' , slug = 'okf-fools-everyone' , body = 'We are not smart enought to use the printer that way' , release_date = ten_minutes_from_now )