freezegun - Adaptive Shield

freezegun

Let your Python tests travel through time