def test_dict(test_data):
 ds = ChartDataSource.from_data(test_data.dict_data)
 assert (len(ds.columns) == 2)
 assert (len(ds.index) == 4)

def test_dict ( test_data ) : ds = ChartDataSource . from_data ( test_data . dict_data ) assert ( len ( ds . columns ) == 2 ) assert ( len ( ds . index ) == 4 )
test creating chart data source from dict of arrays .