Just mock datetime.datetime.now() in the test generator rather than pushing into the auth class itself.