  class TestInsertionSort(object):
  
      def test_insertion_sort(self):
          print('None input')
          data = None
          insertion_sort(data)
          assert_equal(data, None)
  
          print('Empty input')
          data = []
          insertion_sort(data)
          assert_equal(data, [])
 
</s> remove         data = []
        insertion_sort(data)
        assert_equal(data, [])
 </s> add         assert_equal(insertion_sort.sort([]), []) </s> remove         data = [5]
        insertion_sort(data)
        assert_equal(data, [5])
 </s> add         assert_equal(insertion_sort.sort([5]), [5]) </s> remove from nose.tools import assert_equal
 </s> add from nose.tools import assert_equal, assert_raises </s> remove         insertion_sort(data)
        assert_equal(data, sorted(data))
 </s> add         assert_equal(insertion_sort.sort(data), sorted(data))
        assert_raises(TypeError, insertion_sort.sort, None)
  class TestInsertionSort(object):
  
      def test_insertion_sort(self):
          print('None input')
        assert_raises(TypeError, insertion_sort.sort, None)
        assert_raises(TypeError, insertion_sort.sort, None)
        assert_raises(TypeError, insertion_sort.sort, None)
  
          print('Empty input')
          data = []
          insertion_sort(data)
          assert_equal(data, [])
keep keep keep keep replace replace replace keep keep keep keep keep
 Update insertion sort challenge (#129)

Update constraints, test cases, code, and tests. 
sorting_searching/insertion_sort/test_insertion_sort.py