In sorter.py method definitions add self. In TestSorter setUp instantiate self.sorter. In tests use self.sorter.
Add test_swap_list_elements_at_indices() and swap_list_elements_at_indices()