def test_render_data_uri(Chart):
 chart = Chart(fill=True)
 chart.add(u('\xc3\xa9\xc3\xa9\xc3\xa9'), [1, 2, 3])
 chart.add(u('\xc3\xa8\xc3\xa8\xc3\xa8'), [10, 21, 5])
 assert chart.render_data_uri().startswith('data:image/svg+xml;charset=utf-8;base64,')

def test_render_data_uri ( Chart ) : chart = Chart ( fill = True ) chart . add ( u ( '\xc3\xa9\xc3\xa9\xc3\xa9' ) , [ 1 , 2 , 3 ] ) chart . add ( u ( '\xc3\xa8\xc3\xa8\xc3\xa8' ) , [ 10 , 21 , 5 ] ) assert chart . render_data_uri ( ) . startswith ( 'data:image/svg+xml;charset=utf-8;base64,' )
test the render data uri .