def test_x_y_title(Chart):
 chart = Chart(title='I Am A Title', x_title='I am a x title', y_title='I am a y title')
 chart.add('1', [4, (-5), 123, 59, 38])
 chart.add('2', [89, 0, 8, 0.12, 8])
 q = chart.render_pyquery()
 assert (len(q('.titles .title')) == 3)

def test_x_y_title ( Chart ) : chart = Chart ( title = 'I Am A Title' , x_title = 'I am a x title' , y_title = 'I am a y title' ) chart . add ( '1' , [ 4 , ( - 5 ) , 123 , 59 , 38 ] ) chart . add ( '2' , [ 89 , 0 , 8 , 0.12 , 8 ] ) q = chart . render_pyquery ( ) assert ( len ( q ( '.titles .title' ) ) == 3 )
test x title and y title options .