Freezegun is a testing utility allowing you to overwrite the output of built-in language date/time functions allow you to more reliably unit-test functions dependent on those functions.