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

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