diff options
author | Aleksey Lim <alsroot@sugarlabs.org> | 2013-11-07 04:13:03 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@sugarlabs.org> | 2013-11-07 04:13:03 (GMT) |
commit | 98b795c6c41b9d0f2493fb4b8950e8f81ba6faa1 (patch) | |
tree | ecaf3c9e53f967b342d6c6500162a3ab2ce35aeb /tests/units/db/routes.py | |
parent | 44504e120f60697e024bd4f1ec25c6f78a7fb11c (diff) |
Prioritize LANGUAGE envar while detecting default locales
Diffstat (limited to 'tests/units/db/routes.py')
-rwxr-xr-x | tests/units/db/routes.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/units/db/routes.py b/tests/units/db/routes.py index b6e0c11..4dd0fea 100755 --- a/tests/units/db/routes.py +++ b/tests/units/db/routes.py @@ -384,7 +384,7 @@ class RoutesTest(tests.Test): self.assertEqual(-1, self.call('GET', path=['testdocument', guid, 'prop'])) def test_LocalizedSet(self): - toolkit._default_lang = 'en' + toolkit._default_langs = ['en'] class TestDocument(db.Resource): @@ -449,7 +449,7 @@ class RoutesTest(tests.Test): }, }) - toolkit._default_lang = 'en' + toolkit._default_langs = ['en'] self.assertEqual( {'localized_prop': 'value_en'}, @@ -494,7 +494,7 @@ class RoutesTest(tests.Test): [{'localized_prop': 'value_en'}], self.call('GET', path=['testdocument'], accept_language=['foo', 'fr', 'za'], reply=['localized_prop'])['result']) - toolkit._default_lang = 'foo' + toolkit._default_langs = ['foo'] fallback_lang = sorted(['ru', 'es', 'en'])[0] self.assertEqual( |