Question: Test 2 : Functions Return a List of the Correct Length In a file named test 2 . py , write a test function named
Test : Functions Return a List of the Correct Length
In a file named testpy write a test function named testreturnlistcorrectlenght to test that
each of the six functions in the load data module returns a list of the correct length.
Example:
addaverage should return a list of length zero.loaddatastudenttest.csvSchoolA should return a list of length
zero.
studentageliststudenttest.csv should return a list of length four.
For each function except loaddata you need to provide at least test cases covering different
scenarios: functions testfunction test cases
For function loaddata, you need to provide at least test cases covering different scenarios.
That is test cases in total.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
