from random import shuffle

from insertion_sort import insertion_sort as in_sort


def test_insertion_sort():
    expected = range(20)
    unsorted = expected[:]
    shuffle(unsorted)
    in_sort(unsorted)
    actual = unsorted
    assert expected is actual


Add test_insertion_sort