mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-02 20:54:42 +03:00
Tweak test style
This commit is contained in:
parent
bed2f08c24
commit
feddd16c54
|
@ -12,8 +12,8 @@ class TemplateTagTests(TestCase):
|
||||||
def test_add_query_param_with_non_latin_charactor(self):
|
def test_add_query_param_with_non_latin_charactor(self):
|
||||||
# Ensure we don't double-escape non-latin characters
|
# Ensure we don't double-escape non-latin characters
|
||||||
# that are present in the querystring.
|
# that are present in the querystring.
|
||||||
# https://github.com/tomchristie/django-rest-framework/pull/1314
|
# See #1314.
|
||||||
request = factory.get("/", {'q': '查询'})
|
request = factory.get("/", {'q': '查询'})
|
||||||
json_url = add_query_param(request, "format", "json")
|
json_url = add_query_param(request, "format", "json")
|
||||||
self.assertIn("q=%E6%9F%A5%E8%AF%A2", json_url)
|
self.assertIn("q=%E6%9F%A5%E8%AF%A2", json_url)
|
||||||
self.assertIn("format=json")
|
self.assertIn("format=json", json_url)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user