def test_mean(self): data = [13, 19, 15, 2] response = apply_collection_method(data, "mean") assert_that(response, is_(12.25))
def test_count(self): data = ['Sheep', 'Elephant', 'Wolf', 'Dog'] response = apply_collection_method(data, "count") assert_that(response, is_(4))
def test_set(self): data = ['Badger', 'Badger', 'Badger', 'Snake'] response = apply_collection_method(data, "set") assert_that(response, is_(['Badger', 'Snake']))
def test_sum(self): data = [2, 5, 8] response = apply_collection_method(data, "sum") assert_that(response, is_(15))