def chart_runner(chart, scales, axes, marks):
 for (i, scale) in enumerate(scales):
  nt.assert_dict_equal(chart.scales[i].grammar(), scale)
 for (i, axis) in enumerate(axes):
  nt.assert_dict_equal(chart.axes[i].grammar(), axis)
 for (i, mark) in enumerate(marks):
  nt.assert_dict_equal(chart.marks[i].grammar(), mark)

def chart_runner ( chart , scales , axes , marks ) : for ( i , scale ) in enumerate ( scales ) : nt . assert_dict_equal ( chart . scales [ i ] . grammar ( ) , scale ) for ( i , axis ) in enumerate ( axes ) : nt . assert_dict_equal ( chart . axes [ i ] . grammar ( ) , axis ) for ( i , mark ) in enumerate ( marks ) : nt . assert_dict_equal ( chart . marks [ i ] . grammar ( ) , mark )
iterate through each chart element for check for contents .