#NEWLINE# def test_naive_datetime_conversion( self ) : #NEWLINE# #INDENT# '\n        Test that datetimes are correctly converted to the local time zone.\n        ' #NEWLINE# response = self . client . get ( '/syndication/naive-dates/' ) #NEWLINE# doc = minidom . parseString ( response . content ) #NEWLINE# updated = doc . getElementsByTagName ( 'updated' ) [ 0 ] . firstChild . wholeText #NEWLINE# d = Entry . objects . latest ( 'published' ) . published #NEWLINE# latest = rfc3339_date ( timezone . make_aware ( d , TZ ) ) #NEWLINE# self . assertEqual ( updated , latest )