#NEWLINE# def test_content_stack( self ) : #NEWLINE# #INDENT# s = Stack ( 'f_stack' ) #NEWLINE# s . push ( 'a_element' ) #NEWLINE# s . push ( 'b_element' ) #NEWLINE# s . push ( 'c_element' ) #NEWLINE# assert ( len ( s ) == 3 ) #NEWLINE# assert ( s . content ( ) == [ 'c_element' , 'b_element' , 'a_element' ] ) #NEWLINE# s . pop ( ) #NEWLINE# assert ( len ( s ) == 2 ) #NEWLINE# assert ( s . content ( ) == [ 'b_element' , 'a_element' ] )