Binary package “python-freezegun” in ubuntu bionic

Python library to mock the datetime module in unit testing

 FreezeGun allows easy mocking of the datetime module by freezing the return
 value of the methods datetime.datetime.now(), datetime.datetime.utcnow(),
 datetime.date.today(), and time.time() to a fixed point in time. Use it
 in unit testing to make the tests deterministic and time-independent.