diff -r 731b9d6d9c9a tests/regressiontests/i18n/tests.py
a
|
b
|
|
460 | 460 | self.assertEqual([], p('de;q=2.0')) |
461 | 461 | self.assertEqual([], p('de;q=0.a')) |
462 | 462 | self.assertEqual([], p('')) |
| 463 | # ticket 13944 |
| 464 | self.assertEqual([], p('en-nz,en,de,chrome://global/locale/intl.properties')) |
463 | 465 | |
464 | 466 | def test_parse_literal_http_header(self): |
465 | 467 | """ |
… |
… |
|
503 | 505 | r.META = {'HTTP_ACCEPT_LANGUAGE': 'zh-cn,de'} |
504 | 506 | self.assertEqual(g(r), 'zh-cn') |
505 | 507 | |
| 508 | # ticket 13944 |
| 509 | r.META = {'HTTP_ACCEPT_LANGUAGE': 'en-nz,en,de,chrome://global/locale/intl.properties'} |
| 510 | self.assertEqual(g(r), settings.LANGUAGE_CODE) |
| 511 | |
506 | 512 | def test_parse_language_cookie(self): |
507 | 513 | """ |
508 | 514 | Now test that we parse language preferences stored in a cookie correctly. |