Browse files

Modified camel case test names.

  • Loading branch information...
1 parent fa19d60 commit bdbcc5090719bfd9e57ef2f1ff7925e3dbed3a9c @brylie committed Jun 30, 2014
Showing with 6 additions and 6 deletions.
  1. +6 −6 tests/view_tests/tests/test_i18n.py
View
12 tests/view_tests/tests/test_i18n.py
@@ -115,7 +115,7 @@ def test_jsi18n_fallback_language(self):
response = self.client.get('/jsi18n/')
self.assertContains(response, 'il faut le traduire')
- def testI18NLanguageNonEnglishDefault(self):
+ def test_i18n_language_non_english_default(self):
"""
Check if the Javascript i18n view returns an empty language catalog
if the default language is non-English, the selected language
@@ -127,7 +127,7 @@ def testI18NLanguageNonEnglishDefault(self):
self.assertNotContains(response, 'Choisir une heure')
@modify_settings(INSTALLED_APPS={'append': 'view_tests.app0'})
- def test_nonenglish_default_english_userpref(self):
+ def test_non_english_default_english_userpref(self):
"""
Same as above with the difference that there IS an 'en' translation
available. The Javascript i18n view must return a NON empty language catalog
@@ -137,7 +137,7 @@ def test_nonenglish_default_english_userpref(self):
response = self.client.get('/jsi18n_english_translation/')
self.assertContains(response, 'this app0 string is to be translated')
- def testI18NLanguageNonEnglishFallback(self):
+ def test_i18n_language_non_english_fallback(self):
"""
Makes sure that the fallback language is still working properly
in cases where the selected language cannot be found.
@@ -170,7 +170,7 @@ class JsI18NTestsMultiPackage(TestCase):
settings.LANGUAGE_CODE and merge JS translation from several packages.
"""
@modify_settings(INSTALLED_APPS={'append': ['view_tests.app1', 'view_tests.app2']})
- def testI18NLanguageEnglishDefault(self):
+ def test_i18n_language_english_default(self):
"""
Check if the JavaScript i18n view returns a complete language catalog
if the default language is en-us, the selected language has a
@@ -183,7 +183,7 @@ def testI18NLanguageEnglishDefault(self):
self.assertContains(response, 'il faut traduire cette cha\\u00eene de caract\\u00e8res de app1')
@modify_settings(INSTALLED_APPS={'append': ['view_tests.app3', 'view_tests.app4']})
- def testI18NDifferentNonEnLangs(self):
+ def test_i18n_different_non_english_languages(self):
"""
Similar to above but with neither default or requested language being
English.
@@ -192,7 +192,7 @@ def testI18NDifferentNonEnLangs(self):
response = self.client.get('/jsi18n_multi_packages2/')
self.assertContains(response, 'este texto de app3 debe ser traducido')
- def testI18NWithLocalePaths(self):
+ def test_i18n_with_locale_paths(self):
extended_locale_paths = settings.LOCALE_PATHS + (
path.join(path.dirname(
path.dirname(path.abspath(upath(__file__)))), 'app3', 'locale'),)

0 comments on commit bdbcc50

Please sign in to comment.