def test_stacked_line_interpolate():
 stacked = StackedLine(interpolate='cubic')
 stacked.add('one_two', [1, 2])
 stacked.add('ten_twelve', [10, 12])
 q = stacked.render_pyquery()
 assert (set([v.text for v in q('desc.value')]) == set(('1', '2', '11 (+10)', '14 (+12)')))

def test_stacked_line_interpolate ( ) : stacked = StackedLine ( interpolate = 'cubic' ) stacked . add ( 'one_two' , [ 1 , 2 ] ) stacked . add ( 'ten_twelve' , [ 10 , 12 ] ) q = stacked . render_pyquery ( ) assert ( set ( [ v . text for v in q ( 'desc.value' ) ] ) == set ( ( '1' , '2' , '11 (+10)' , '14 (+12)' ) ) )
test interpolated stacked line .