def test_serie_precedence_over_global_config():
 chart = Line(stroke=False)
 chart.add('1', s1, stroke=True)
 chart.add('2', s2)
 q = chart.render_pyquery()
 assert (len(q('.serie-0 .line')) == 1)
 assert (len(q('.serie-1 .line')) == 0)
 assert (len(q('.serie-0 .dot')) == 5)
 assert (len(q('.serie-1 .dot')) == 6)

def test_serie_precedence_over_global_config ( ) : chart = Line ( stroke = False ) chart . add ( '1' , s1 , stroke = True ) chart . add ( '2' , s2 ) q = chart . render_pyquery ( ) assert ( len ( q ( '.serie-0 .line' ) ) == 1 ) assert ( len ( q ( '.serie-1 .line' ) ) == 0 ) assert ( len ( q ( '.serie-0 .dot' ) ) == 5 ) assert ( len ( q ( '.serie-1 .dot' ) ) == 6 )
test that per serie configuration overide global configuration .