#NEWLINE# def test_data_point_to_json_with_tz( self ) : #NEWLINE# #INDENT# d = { #NEWLINE# #INDENT# 't' : '2013-12-18T00:00:00' , #NEWLINE# 'v' : 1.0 , #NEWLINE# #UNINDENT# } #NEWLINE# d = DataPoint ( d , None , tz = 'US/Eastern' ) #NEWLINE# j = json . loads ( d . to_json ( ) ) #NEWLINE# self . assertEquals ( j [ 't' ] , '2013-12-18T00:00:00-05:00' ) #NEWLINE# self . assertEquals ( j [ 'v' ] , 1.0 )