<s> from nose . tools import assert_equal <EOL> class TestHanoi ( object ) : <EOL> def test_hanoi ( self ) : <EOL> num_disks = <NUM_LIT:3> <EOL> src = Stack ( ) <EOL> buff = Stack ( ) <EOL> dest = Stack ( ) <EOL> print ( '<STR_LIT>' ) <EOL> hanoi ( num_disks , None , None , None ) <EOL> print ( '<STR_LIT>' ) <EOL> hanoi ( num_disks , src , dest , buff ) <EOL> assert_equal ( dest . pop ( ) , None ) <EOL> print ( '<STR_LIT>' ) <EOL> src . push ( <NUM_LIT:5> ) <EOL> hanoi ( num_disks , src , dest , buff ) <EOL> assert_equal ( dest . pop ( ) , <NUM_LIT:5> ) <EOL> print ( '<STR_LIT>' ) <EOL> for i in range ( num_disks , - <NUM_LIT:1> , - <NUM_LIT:1> ) : <EOL> src . push ( i ) <EOL> hanoi ( num_disks , src , dest , buff ) <EOL> for i in range ( <NUM_LIT:0> , num_disks ) : <EOL> assert_equal ( dest . pop ( ) , i ) <EOL> print ( '<STR_LIT>' ) <EOL> def main ( ) : <EOL> test = TestHanoi ( ) <EOL> test . test_hanoi ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
