def test_only_one_value_log(Chart):
 chart = Chart(logarithmic=True)
 chart.add('S', [1])
 if (not chart._dual):
  chart.x_labels = 'single'
 q = chart.render_pyquery()
 assert (len(q('.legend')) == 1)

def test_only_one_value_log ( Chart ) : chart = Chart ( logarithmic = True ) chart . add ( 'S' , [ 1 ] ) if ( not chart . _dual ) : chart . x_labels = 'single' q = chart . render_pyquery ( ) assert ( len ( q ( '.legend' ) ) == 1 )
test logarithmic chart rendering with only one value .