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