mirror of
https://github.com/Hopiu/django.git
synced 2026-05-19 21:01:51 +00:00
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10539 bcc190cf-cafb-0310-a4f2-bffc1f526a37
15 lines
463 B
Python
15 lines
463 B
Python
# coding: utf-8
|
|
from django.test import TestCase
|
|
|
|
class URLHandling(TestCase):
|
|
"""
|
|
Tests for URL handling in views and responses.
|
|
"""
|
|
def test_iri_redirect(self):
|
|
"""
|
|
Tests that redirecting to an IRI, requiring encoding before we use it
|
|
in an HTTP response, is handled correctly.
|
|
"""
|
|
response = self.client.get(u'/views/中文/')
|
|
self.assertRedirects(response, "/views/%E4%B8%AD%E6%96%87/target/")
|
|
|