def test_no_dot():
 line = Line()
 line.add('no dot', [])
 q = line.render_pyquery()
 assert (q('.text-overlay text').text() == 'No data')

def test_no_dot ( ) : line = Line ( ) line . add ( 'no dot' , [ ] ) q = line . render_pyquery ( ) assert ( q ( '.text-overlay text' ) . text ( ) == 'No data' )
line test with an empty serie .