def test_no_data_with_lists_of_nones(Chart):
 chart = Chart()
 chart.add('Serie1', [None, None, None, None])
 chart.add('Serie2', [None, None, None])
 q = chart.render_pyquery()
 assert (q('.text-overlay text').text() == 'No data')

def test_no_data_with_lists_of_nones ( Chart ) : chart = Chart ( ) chart . add ( 'Serie1' , [ None , None , None , None ] ) chart . add ( 'Serie2' , [ None , None , None ] ) q = chart . render_pyquery ( ) assert ( q ( '.text-overlay text' ) . text ( ) == 'No data' )
test no data for several none containing series .