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' '1979 188 CET'
""" """
from django.utils import dateformat from django.utils import dateformat, translation
format = dateformat.format
import datetime, os, time import datetime, os, time
format = dateformat.format
os.environ['TZ'] = 'Europe/Copenhagen' os.environ['TZ'] = 'Europe/Copenhagen'
translation.activate('en-us')
time.tzset() time.tzset()
my_birthday = datetime.datetime(1979, 7, 7, 22, 00) my_birthday = datetime.datetime(1979, 7, 7, 22, 00)