Question: Test 2 : Functions Return a List of the Correct Length In a file named test 2 . py , write a test function named

Test 2: Functions Return a List of the Correct Length
In a file named test2.py, write a test function named test_return_list_correct_lenght to test that
each of the six functions in the load data module returns a list of the correct length.
Example:
add_average([]) should return a list of length zero.load_data("student-test.csv",("School","A")) should return a list of length
zero.
student_age_list("student-test.csv",18) should return a list of length four.
For each function except load_data you need to provide at least 3 test cases covering different
scenarios: 5 functions *3 test/function =15 test cases
For function load_data, you need to provide at least 6 test cases covering different scenarios.
That is 21 test cases in total.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!