Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started