Skip to content

Commit

Permalink
Moved a test that didn't require Selenium.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaugustin committed Dec 22, 2013
1 parent 71450f6 commit 8656037
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/view_tests/tests/test_i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ def testI18NLanguageNonEnglishFallback(self):
response = self.client.get('/views/jsi18n/')
self.assertContains(response, 'Choisir une heure')

def test_escaping(self):
# Force a language via GET otherwise the gettext functions are a noop!
response = self.client.get('/views/jsi18n_admin/?language=de')
self.assertContains(response, '\\x04')

class JsI18NTestsMultiPackage(TestCase):
"""
Expand Down Expand Up @@ -207,8 +211,3 @@ def test_javascript_gettext(self):
self.assertEqual(elem.text, "1 Resultat")
elem = self.selenium.find_element_by_id("npgettext_plur")
self.assertEqual(elem.text, "455 Resultate")

def test_escaping(self):
# Force a language via GET otherwise the gettext functions are a noop!
response = self.client.get('/jsi18n_admin/?language=de')
self.assertContains(response, '\\x04')

0 comments on commit 8656037

Please sign in to comment.