  class TestMinHeap(object):
  
      def test_min_heap(self):
          heap = MinHeap()
          assert_equal(heap.peek_min(), None)
          assert_equal(heap.extract_min(), None)
          heap.insert(20)
          assert_equal(heap.array[0], 20)
          heap.insert(5)
          assert_equal(heap.array[0], 5)
          assert_equal(heap.array[1], 20)
 
</s> remove class TestMinHeap(object):
 </s> add class TestMinHeap(unittest.TestCase): </s> remove     "        assert_equal(heap.array[0], 20)\n",
 </s> add     "        self.assertEqual(heap.array[0], 20)\n", </s> remove     "        assert_equal(heap.peek_min(), None)\n",
    "        assert_equal(heap.extract_min(), None)\n",
 </s> add     "        self.assertEqual(heap.peek_min(), None)\n",
    "        self.assertEqual(heap.extract_min(), None)\n", </s> remove     "        assert_equal(heap.array[0], 5)\n",
    "        assert_equal(heap.array[1], 20)\n",
 </s> add     "        self.assertEqual(heap.array[0], 5)\n",
    "        self.assertEqual(heap.array[1], 20)\n", </s> remove     "        assert_equal(heap.array[0], 5)\n",
    "        assert_equal(heap.array[1], 20)\n",
    "        assert_equal(heap.array[2], 15)\n",
 </s> add     "        self.assertEqual(heap.array[0], 5)\n",
    "        self.assertEqual(heap.array[1], 20)\n",
    "        self.assertEqual(heap.array[2], 15)\n",
        self.assertEqual(heap.peek_min(), None)
        self.assertEqual(heap.extract_min(), None)
  class TestMinHeap(object):
  
      def test_min_heap(self):
          heap = MinHeap()
        self.assertEqual(heap.peek_min(), None)
        self.assertEqual(heap.extract_min(), None)
        self.assertEqual(heap.peek_min(), None)
        self.assertEqual(heap.extract_min(), None)
          heap.insert(20)
          assert_equal(heap.array[0], 20)
          heap.insert(5)
          assert_equal(heap.array[0], 5)
          assert_equal(heap.array[1], 20)
keep keep keep keep replace replace keep keep keep keep keep
 #273: Remove nose dependency for graphs_trees/ (#277) 
graphs_trees/min_heap/test_min_heap.py