#NEWLINE# def test_add_bars( self ) : #NEWLINE# #INDENT# 'test the shortcut for adding a series as bars' #NEWLINE# series = { #NEWLINE# #INDENT# 'data' : ( ( ( 0 , 0 ) , ) + S1 ) , #NEWLINE# 'bars' : { #NEWLINE# #INDENT# 'barWidth' : 0.75 , #NEWLINE# 'show' : True , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# self . flot . add_bars ( ( ( ( 0 , 0 ) , ) + S1 ) ) #NEWLINE# self . assertEqual ( self . flot . _series [ 0 ] [ 'bars' ] , { #NEWLINE# #INDENT# 'show' : True , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( json . dumps ( [ series ] ) , self . flot . series_json )