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