#NEWLINE# def test_add_time_series( self ) : #NEWLINE# #INDENT# '\n        make sure adding time series works properly:\n\n        * conversion to JS timestamp\n        * time series mode added to options\n        ' #NEWLINE# time_series = [ ( ( date ( 2010 , 3 , 14 ) - timedelta ( days = i ) ) , i ) for i in range ( 5 ) ] #NEWLINE# self . flot . add_series ( time_series ) #NEWLINE# self . assertEqual ( i . flot . _series [ 0 ] [ 'data' ] , [ ( 1268553600000.0 , 0 ) , ( 1268467200000.0 , 1 ) , ( 1268380800000.0 , 2 ) , ( 1268294400000.0 , 3 ) , ( 1268208000000.0 , 4 ) ] ) #NEWLINE# self . assertEqual ( self . flot . _options [ 'xaxis' ] , { #NEWLINE# #INDENT# 'mode' : 'time' , #NEWLINE# #UNINDENT# } )