from django.utils import timezone


class SomeTestCase(TestCase):

    def test_auto_add(self):
        now = timezone.now()
now_31 = now - datetime.timedelta(days=31)
self.mock('timezone.now', returns=now_31, tracker=None)
SomeObject.objects.create()
Overwrite auto_now for unittest