def test_another_sparktext():
 chart = Line()
 chart.add('_', [0, 30, 55, 80, 33, 150])
 assert (chart.render_sparktext() == u('\xe2\x96\x81\xe2\x96\x82\xe2\x96\x83\xe2\x96\x84\xe2\x96\x82\xe2\x96\x88'))
 assert (chart.render_sparktext() == chart.render_sparktext())
 chart2 = Bar()
 chart2.add('_', [0, 30, 55, 80, 33, 150])
 assert (chart2.render_sparktext() == chart.render_sparktext())

def test_another_sparktext ( ) : chart = Line ( ) chart . add ( '_' , [ 0 , 30 , 55 , 80 , 33 , 150 ] ) assert ( chart . render_sparktext ( ) == u ( '\xe2\x96\x81\xe2\x96\x82\xe2\x96\x83\xe2\x96\x84\xe2\x96\x82\xe2\x96\x88' ) ) assert ( chart . render_sparktext ( ) == chart . render_sparktext ( ) ) chart2 = Bar ( ) chart2 . add ( '_' , [ 0 , 30 , 55 , 80 , 33 , 150 ] ) assert ( chart2 . render_sparktext ( ) == chart . render_sparktext ( ) )
test that same data produces same sparktext .