          hanoi(num_disks, src, dest, buff)
          assert_equal(dest.pop(), 5)
  
          print('Test: 2 or more disks')
          for i in xrange(num_disks, -1, -1):
              src.push(i)
          hanoi(num_disks, src, dest, buff)
          for i in xrange(0, num_disks):
              assert_equal(dest.pop(), i)
  
 
</s> remove         for i in xrange(0, num_disks):
 </s> add         for i in range(0, num_disks): </s> remove     "        for i in xrange(num_disks, -1, -1):\n",
 </s> add     "        for i in range(num_disks, -1, -1):\n", </s> remove     "        for i in xrange(num_disks, -1, -1):\n",
 </s> add     "        for i in range(num_disks, -1, -1):\n", </s> remove     "        for i in xrange(0, num_disks):\n",
 </s> add     "        for i in range(0, num_disks):\n", </s> remove     "        for i in xrange(0, num_disks):\n",
 </s> add     "        for i in range(0, num_disks):\n",
        for i in range(num_disks, -1, -1):
          hanoi(num_disks, src, dest, buff)
          assert_equal(dest.pop(), 5)
  
          print('Test: 2 or more disks')
        for i in range(num_disks, -1, -1):
              src.push(i)
          hanoi(num_disks, src, dest, buff)
          for i in xrange(0, num_disks):
              assert_equal(dest.pop(), i)
  
keep keep keep keep replace keep keep keep keep keep
 Changed xrange to range to be compatible with Python 3. 
stacks_queues/hanoi/test_hanoi.py