Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #18798 -- Renamed conflicting test methods in i18n tests

  • Loading branch information...
commit 10d32072afa1e1d4391108191800ce7007a63f2e 1 parent 44c09de
@uruz uruz authored claudep committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/regressiontests/i18n/tests.py
View
4 tests/regressiontests/i18n/tests.py
@@ -808,13 +808,13 @@ def test_parse_language_cookie(self):
r.META = {'HTTP_ACCEPT_LANGUAGE': 'de'}
self.assertEqual(g(r), 'zh-cn')
- def test_get_language_from_path(self):
+ def test_get_language_from_path_real(self):
from django.utils.translation.trans_real import get_language_from_path as g
self.assertEqual(g('/pl/'), 'pl')
self.assertEqual(g('/pl'), 'pl')
self.assertEqual(g('/xyz/'), None)
- def test_get_language_from_path(self):
+ def test_get_language_from_path_null(self):
from django.utils.translation.trans_null import get_language_from_path as g
self.assertEqual(g('/pl/'), None)
self.assertEqual(g('/pl'), None)
Please sign in to comment.
Something went wrong with that request. Please try again.