def test_only_one_value_intrp(Chart):
 chart = Chart(interpolate='cubic')
 chart.add('S', [1])
 q = chart.render_pyquery()
 assert (len(q('.legend')) == 1)

def test_only_one_value_intrp ( Chart ) : chart = Chart ( interpolate = 'cubic' ) chart . add ( 'S' , [ 1 ] ) q = chart . render_pyquery ( ) assert ( len ( q ( '.legend' ) ) == 1 )
test interpolated chart rendering with only one value .