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

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