def test_logarithmic():
 line = Line(logarithmic=True)
 line.add('_', [1, (10 ** 10), 1])
 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('.legend')) == 1)
 assert (len(q('.x.axis .guides')) == 0)
 assert (len(q('.y.axis .guides')) == 21)
 assert (len(q('.dots')) == 3)

def test_logarithmic ( ) : line = Line ( logarithmic = True ) line . add ( '_' , [ 1 , ( 10 ** 10 ) , 1 ] ) 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 ( '.legend' ) ) == 1 ) assert ( len ( q ( '.x.axis .guides' ) ) == 0 ) assert ( len ( q ( '.y.axis .guides' ) ) == 21 ) assert ( len ( q ( '.dots' ) ) == 3 )
test logarithmic option .