Question: 2 1 . Add the First Test Case As you can see, we have completed a lot of tests.py already. There is a test procedure

21. Add the First Test Case
As you can see, we have completed a lot of tests.py already. There is a test procedure test_replace_first and we remembered to call it at the bottom of the script. All you need to do is to add test cases and write your name and date in the file.
You already designed several test cases for the function replace_first in the activity Designing Tests with Multiple Arguments. You may want to remind yourself of those test cases now. However, to help you with this exercise, we want you to add the test cases in a specific order. Look again at the specification of replace_first in funcs.py. You will see several examples. Examples are test cases! In fact, it is always a good idea to include specification examples in your testing plan.
Add a test case for the first example to the test procedure now. Do not add any other test cases. When you are done, run the test script. If you have done everything correctly, you should not see any errors (yet).

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 Databases Questions!