def test_pushpop(size):
 result = pushpop(size)
 print('== Result ==')
 print(result)
 assert (result == list(reversed(range(size))))

def test_pushpop ( size ) : result = pushpop ( size ) print ( '== Result ==' ) print ( result ) assert ( result == list ( reversed ( range ( size ) ) ) )
test basic push pop operation on a stack object .