def test_negative_and_float__sparktext():
 'Test negative values'
 chart = Line()
 chart.add('_', [0.1, 0.2, 0.9, (-0.5)])
 assert (chart.render_sparktext() == u('\xe2\x96\x81\xe2\x96\x82\xe2\x96\x88\xe2\x96\x81'))

def test_negative_and_float__sparktext ( ) : chart = Line ( ) chart . add ( '_' , [ 0.1 , 0.2 , 0.9 , ( - 0.5 ) ] ) assert ( chart . render_sparktext ( ) == u ( '\xe2\x96\x81\xe2\x96\x82\xe2\x96\x88\xe2\x96\x81' ) )
test negative values .