Question: For this lab your goal will be to add a assert statements to the PyNote program from Lab 3 . The program has been updated
For this lab your goal will be to add a assert statements to the PyNote program from Lab The program has been updated with some new features. As the PyNote program continues to grow, we want to introduce some simple tests so that we know when we break a critical feature. A python code named labpy has been provided for you here Download here. The lab code is already functional.
You are free to implement your code however you want, but it must include the following requirements:
An assert statements to test that the isint function returns expected results given an argument of any type.
An assert statement that raises an AssertionError when a FileNotFoundError is not raised when the removenote function is called, but the "pynote.txt file does not exist.
Once you have completed both and modify the removenote function so that it passes
Some considerations
You will need to consider where to place each of these assert statements so that they run when the program is run.
To test requirement you will need to delete the PyNote.txt file while the program is running.
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
