def test_value_formatter():
 line = Line(value_formatter=(lambda x: (str(x) + u('\xe2\x80\xb0'))))
 line.add('_', [(10 ** 4), (10 ** 5), (23 * (10 ** 4))])
 q = line.render_pyquery()
 assert (len(q('.y.axis .guides')) == 11)
 assert (q('.axis.y text').map(texts) == list(map((lambda x: (str(x) + u('\xe2\x80\xb0'))), map(float, range(20000, 240000, 20000)))))

def test_value_formatter ( ) : line = Line ( value_formatter = ( lambda x : ( str ( x ) + u ( '\xe2\x80\xb0' ) ) ) ) line . add ( '_' , [ ( 10 ** 4 ) , ( 10 ** 5 ) , ( 23 * ( 10 ** 4 ) ) ] ) q = line . render_pyquery ( ) assert ( len ( q ( '.y.axis .guides' ) ) == 11 ) assert ( q ( '.axis.y text' ) . map ( texts ) == list ( map ( ( lambda x : ( str ( x ) + u ( '\xe2\x80\xb0' ) ) ) , map ( float , range ( 20000 , 240000 , 20000 ) ) ) ) )
test value formatter option .