Fixed tests that I broke a few commits ago.

This commit is contained in:
Alex Gaynor 2012-09-07 14:01:46 -04:00
parent f47af9df1d
commit a92b81b0e8
1 changed files with 4 additions and 3 deletions

View File

@ -3,11 +3,12 @@ import os
from django.core.management import call_command, CommandError from django.core.management import call_command, CommandError
from django.test import TestCase from django.test import TestCase
from django.test.utils import override_settings from django.test.utils import override_settings
from django.utils import translation from django.utils import translation, six
from django.utils.six import StringIO from django.utils.six import StringIO
test_dir = os.path.abspath(os.path.dirname(__file__)) test_dir = os.path.abspath(os.path.dirname(__file__))
class MessageCompilationTests(TestCase): class MessageCompilationTests(TestCase):
def setUp(self): def setUp(self):
@ -19,8 +20,8 @@ class MessageCompilationTests(TestCase):
class PoFileTests(MessageCompilationTests): class PoFileTests(MessageCompilationTests):
LOCALE='es_AR' LOCALE = 'es_AR'
MO_FILE='locale/%s/LC_MESSAGES/django.mo' % LOCALE MO_FILE = 'locale/%s/LC_MESSAGES/django.mo' % LOCALE
def test_bom_rejection(self): def test_bom_rejection(self):
os.chdir(test_dir) os.chdir(test_dir)