Changed dateformat unit tests so that they use the en-us language. They were failing because they depended on the current user's LANGUAGE_CODE setting

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1145 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2005-11-09 20:36:23 +00:00
parent 31d18380f9
commit ba87f474dc
1 changed files with 4 additions and 2 deletions

View File

@ -63,11 +63,13 @@ NotImplementedError
'1979 188 CET'
"""
from django.utils import dateformat
format = dateformat.format
from django.utils import dateformat, translation
import datetime, os, time
format = dateformat.format
os.environ['TZ'] = 'Europe/Copenhagen'
translation.activate('en-us')
time.tzset()
my_birthday = datetime.datetime(1979, 7, 7, 22, 00)