I\'m trying to write tests for a class that has methods like:
import datetime import pytz class MyClass: def get_now(self, timezone): return dat
I would use the helpers from the 'testfixtures' package to mock out the datetime class you're calling now() on:
http://packages.python.org/testfixtures/datetime.html#datetimes
That way, you can test all the cases you have, all the time.