Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixed #18798: Redefinition of test test_get_language_from_path in tests.regressiontests.i18n.tests #295

Closed
wants to merge 1 commit into from

2 participants

@uruz

Two tests had same signature, so only last was executed.

@claudep
Collaborator

Thanks, committed in 10d3207

@claudep claudep closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 19, 2012
  1. @uruz

    Fixed #18798: Redefinition of test test_get_language_from_path in tes…

    uruz authored
    …ts.regressiontests.i18n.tests
This page is out of date. Refresh to see the latest.
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)
Something went wrong with that request. Please try again.