freezegun is a nifty Python package that takes the pain out of mocking things like datetime.now in tests. I just gave it a go yesterday and it seems to work well.