FreezeGun is a library that allows your Python tests to travel through time by mocking the datetime module. Home page: https://github.com/spulec/freezegun