def test_same_max_and_relative_values_sparktext():
 chart = Line()
 chart.add('_', [0, 0, 0, 0, 0])
 assert (chart.render_sparktext() == u('\xe2\x96\x81\xe2\x96\x81\xe2\x96\x81\xe2\x96\x81\xe2\x96\x81'))
 chart2 = Line()
 chart2.add('_', [1, 1, 1, 1, 1])
 assert (chart2.render_sparktext(relative_to=1) == u('\xe2\x96\x81\xe2\x96\x81\xe2\x96\x81\xe2\x96\x81\xe2\x96\x81'))

def test_same_max_and_relative_values_sparktext ( ) : chart = Line ( ) chart . add ( '_' , [ 0 , 0 , 0 , 0 , 0 ] ) assert ( chart . render_sparktext ( ) == u ( '\xe2\x96\x81\xe2\x96\x81\xe2\x96\x81\xe2\x96\x81\xe2\x96\x81' ) ) chart2 = Line ( ) chart2 . add ( '_' , [ 1 , 1 , 1 , 1 , 1 ] ) assert ( chart2 . render_sparktext ( relative_to = 1 ) == u ( '\xe2\x96\x81\xe2\x96\x81\xe2\x96\x81\xe2\x96\x81\xe2\x96\x81' ) )
test flat sparktexts .