def test_non_iterable_value(Chart):
 chart = Chart(no_prefix=True)
 chart.add('A', 1)
 chart.add('B', 2)
 if (not chart._dual):
  chart.x_labels = ('red', 'green', 'blue')
 chart1 = chart.render()
 chart = Chart(no_prefix=True)
 chart.add('A', [1])
 chart.add('B', [2])
 if (not chart._dual):
  chart.x_labels = ('red', 'green', 'blue')
 chart2 = chart.render()
 assert (chart1 == chart2)

def test_non_iterable_value ( Chart ) : chart = Chart ( no_prefix = True ) chart . add ( 'A' , 1 ) chart . add ( 'B' , 2 ) if ( not chart . _dual ) : chart . x_labels = ( 'red' , 'green' , 'blue' ) chart1 = chart . render ( ) chart = Chart ( no_prefix = True ) chart . add ( 'A' , [ 1 ] ) chart . add ( 'B' , [ 2 ] ) if ( not chart . _dual ) : chart . x_labels = ( 'red' , 'green' , 'blue' ) chart2 = chart . render ( ) assert ( chart1 == chart2 )
test serie as non iterable .