def test_can_merge_a_list(self):
     listb = [1, 3, 5]
     listc = [2, 4, 6]
     merged_list = count_inversion.merge_and_count(listb, listc, 0)[0]
     lista = listb + listc
     lista.sort()
     self.assertEqual(merged_list, lista)
 def test_can_count_while_merging(self):
     listb = [1, 3, 5]
     listc = [2, 4, 6]
     inversion_merged = count_inversion.merge_and_count(listb, listc, 0)[1]
     self.assertEqual(inversion_merged, 3)