def test_stacked_line_reverse():
 stacked = StackedLine(stack_from_top=True)
 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(('11 (+1)', '14 (+2)', '10', '12')))

def test_stacked_line_reverse ( ) : stacked = StackedLine ( stack_from_top = True ) 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 ( ( '11 (+1)' , '14 (+2)' , '10' , '12' ) ) )
test stack from top stacked line .