Chapter 1
Testing
Section 7
Testing Things that Involve Dates and Time
Many applications rely on datetime.datetime.now() to create a timestamp. When we use this with a unit test, the results are essentially impossible to predict. How can we work with datetime stamps? Let’s look into this. - Include the code to be tested and create the skeleton for testing - Use the setup() and runTest() methods