Skip to content

Instantly share code, notes, and snippets.

Created December 11, 2012 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4261936 to your computer and use it in GitHub Desktop.
Save anonymous/4261936 to your computer and use it in GitHub Desktop.
freeze_time fails this assertion
from freezegun import freeze_time
from datetime import datetime
@freeze_time("2012-01-14")
def test():
assert datetime.now() == datetime(2012, 01, 14)
if __name__ == "__main__":
test()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment