def test_sum_interval_another_example(self): sample_list = [1, 2, 3, 4, 5, 6] total = sum_interval(sample_list, 0, 1) self.assertEqual(total, 3)
def test_sum_interval(self): sample_list = [1, 2, 3, 4] total = sum_interval(sample_list, 0, 2) self.assertEqual(total, 6)