def test_empty_lists_with_nones(Chart):
 chart = Chart()
 chart.add('A', [None, None])
 chart.add('B', [None, 4, 4])
 q = chart.render_pyquery()
 assert (len(q('.legend')) == 2)

def test_empty_lists_with_nones ( Chart ) : chart = Chart ( ) chart . add ( 'A' , [ None , None ] ) chart . add ( 'B' , [ None , 4 , 4 ] ) q = chart . render_pyquery ( ) assert ( len ( q ( '.legend' ) ) == 2 )
test chart rendering with a none filled serie .