def test_line():
 line = Line()
 rng = [8, 12, 23, 73, 39, 57]
 line.add('Single serie', rng)
 line.title = 'One serie'
 q = line.render_pyquery()
 assert (len(q('.axis.x')) == 0)
 assert (len(q('.axis.y')) == 1)
 assert (len(q('.plot .series path')) == 1)
 assert (len(q('.x.axis .guides')) == 0)
 assert (len(q('.y.axis .guides')) == 7)

def test_line ( ) : line = Line ( ) rng = [ 8 , 12 , 23 , 73 , 39 , 57 ] line . add ( 'Single serie' , rng ) line . title = 'One serie' q = line . render_pyquery ( ) assert ( len ( q ( '.axis.x' ) ) == 0 ) assert ( len ( q ( '.axis.y' ) ) == 1 ) assert ( len ( q ( '.plot .series path' ) ) == 1 ) assert ( len ( q ( '.x.axis .guides' ) ) == 0 ) assert ( len ( q ( '.y.axis .guides' ) ) == 7 )
another simple line test .