  class TestQuickSort(object):
      def test_quick_sort(self, func):
          print('Empty input')
          data = []
          func(data)
          assert_equal(data, [])
  
          print('One element')
          data = [5]
          func(data)
          assert_equal(data, [5])
 
</s> remove         func(data)
        assert_equal(data, [5])
 </s> add         sorted_data = func(data)
        assert_equal(sorted_data, [5]) </s> remove         data = func(data)
        assert_equal(data, sorted(data))
 </s> add         sorted_data = func(data)
        assert_equal(sorted_data, sorted(data)) </s> remove     "        func(data)\n",
    "        assert_equal(data, [])\n",
 </s> add     "        sorted_data = func(data)\n",
    "        assert_equal(sorted_data, [])\n", </s> remove     "        func(data)\n",
    "        assert_equal(data, [])\n",
 </s> add     "        sorted_data = func(data)\n",
    "        assert_equal(sorted_data, [])\n", </s> remove     "        func(data)\n",
    "        assert_equal(data, [5])\n",
 </s> add     "        sorted_data = func(data)\n",
    "        assert_equal(sorted_data, [5])\n",
        sorted_data = func(data)
        assert_equal(sorted_data, [])
  class TestQuickSort(object):
      def test_quick_sort(self, func):
          print('Empty input')
          data = []
        sorted_data = func(data)
        assert_equal(sorted_data, [])
        sorted_data = func(data)
        assert_equal(sorted_data, [])
  
          print('One element')
          data = [5]
          func(data)
          assert_equal(data, [5])
keep keep keep keep replace replace keep keep keep keep keep
 Fixed #23: Quicksort unit tests aren't correctly testing the returned value from quick_sort. 
sorting_searching/quick_sort/test_quick_sort.py