mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.
Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from __future__ import absolute_import, unicode_literals
|
||||
|
||||
from django.core.urlresolvers import reverse
|
||||
from django.template.response import TemplateResponse
|
||||
@@ -39,9 +39,9 @@ class AdminCustomUrlsTest(TestCase):
|
||||
A smoke test to ensure POST on add_view works.
|
||||
"""
|
||||
post_data = {
|
||||
'_popup': u'1',
|
||||
"name": u'Action added through a popup',
|
||||
"description": u"Description of added action",
|
||||
'_popup': '1',
|
||||
"name": 'Action added through a popup',
|
||||
"description": "Description of added action",
|
||||
}
|
||||
response = self.client.post('/custom_urls/admin/admin_custom_urls/action/!add/', post_data)
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
||||
Reference in New Issue
Block a user