def test_simple_box():
 box = Box()
 box.add('test1', [(-1), 2, 3, 3.1, 3.2, 4, 5])
 box.add('test2', [2, 3, 5, 6, 6, 4])
 box.title = 'Box test'
 q = box.render_pyquery()
 assert (len(q('.axis.y')) == 1)
 assert (len(q('.legend')) == 2)
 assert (len(q('.plot .series rect')) == 2)

def test_simple_box ( ) : box = Box ( ) box . add ( 'test1' , [ ( - 1 ) , 2 , 3 , 3.1 , 3.2 , 4 , 5 ] ) box . add ( 'test2' , [ 2 , 3 , 5 , 6 , 6 , 4 ] ) box . title = 'Box test' q = box . render_pyquery ( ) assert ( len ( q ( '.axis.y' ) ) == 1 ) assert ( len ( q ( '.legend' ) ) == 2 ) assert ( len ( q ( '.plot .series rect' ) ) == 2 )
simple box test .