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

def test_no_data_with_empty_series ( Chart ) : chart = Chart ( ) chart . add ( 'Serie1' , [ ] ) chart . add ( 'Serie2' , [ ] ) q = chart . render_pyquery ( ) assert ( q ( '.text-overlay text' ) . text ( ) == 'No data' )
test no data for 2 empty series .