#NEWLINE# def test_serialise_with_naive_datetime( self ) : #NEWLINE# #INDENT# '\n        This tests that naive datetimes are saved as UTC\n        ' #NEWLINE# log = Log ( time = log . WAGTAIL_05_RELEASE_DATETIME , data = 'Wagtail 0.5 released' ) #NEWLINE# log_json = json . loads ( log . to_json ( ) ) #NEWLINE# self . assertEqual ( log_json [ 'time' ] , '2014-08-01T16:01:42Z' )