#NEWLINE# def test_data_point_from_data_with_tz( self ) : #NEWLINE# #INDENT# t = '2013-12-18T00:00:00' #NEWLINE# v = 1.0 #NEWLINE# series_id = 'foo' #NEWLINE# key = 'bar' #NEWLINE# d = DataPoint . from_data ( t , v , series_id , key , tz = 'US/Eastern' ) #NEWLINE# j = d . to_dictionary ( ) #NEWLINE# self . assertEquals ( j [ 't' ] , '2013-12-18T00:00:00-05:00' ) #NEWLINE# self . assertEquals ( d . v , 1.0 ) #NEWLINE# self . assertEquals ( d . id , 'foo' ) #NEWLINE# self . assertEquals ( d . key , 'bar' )