The Department of Health and Human Services has noticed the large volume of high quality test data coming from your lab. Top officials in HHS met last week with your Director to better understand why that might be the case, and she highlighted your team’s work on the COVID data entry program.
The IT department at HHS has asked if it might be possible to restructure your
program using object oriented programming techniques so that it can be
distributed and reused more widely by other labs. They have given you a test
suite (see below) that demonstrates how they would like the
class to behave.
Create a module named
covidwhich contains a class called
CovidTestResultclass constructor so that it takes two arguments:
last_calibrationwhich it sets as properties of the new object.
Define a method
Falsedepending on whether the CovidTestResult is valid according to the rules from module 3.
Write docstrings for your class and its methods that document how the code is to be used.
Run the supplied test suite test_covid.py to make sure that it is working as expected.