#NEWLINE# @ requires_tz_support #NEWLINE# @ override_settings ( USE_TZ = True , TIME_ZONE = 'Africa/Nairobi' ) #NEWLINE# def test_aware_datetime_date_detail( self ) : #NEWLINE# #INDENT# bs = BookSigning . objects . create ( event_date = datetime . datetime ( 2008 , 4 , 2 , 12 , 0 , tzinfo = timezone . utc ) ) #NEWLINE# res = self . client . get ( ( '/dates/booksignings/2008/apr/2/%d/' % bs . pk ) ) #NEWLINE# self . assertEqual ( res . status_code , 200 ) #NEWLINE# bs . event_date = datetime . datetime ( 2008 , 4 , 1 , 22 , 0 , tzinfo = timezone . utc ) #NEWLINE# bs . save ( ) #NEWLINE# res = self . client . get ( ( '/dates/booksignings/2008/apr/2/%d/' % bs . pk ) ) #NEWLINE# self . assertEqual ( res . status_code , 200 ) #NEWLINE# bs . event_date = datetime . datetime ( 2008 , 4 , 2 , 22 , 0 , tzinfo = timezone . utc ) #NEWLINE# bs . save ( ) #NEWLINE# res = self . client . get ( ( '/dates/booksignings/2008/apr/2/%d/' % bs . pk ) ) #NEWLINE# self . assertEqual ( res . status_code , 404 )