~ubuntu-branches/ubuntu/saucy/python-django/saucy-updates

« back to all changes in this revision

Viewing changes to tests/regressiontests/comment_tests/tests/comment_view_tests.py

  • Committer: Package Import Robot
  • Author(s): Luke Faraone, Jakub Wilk, Luke Faraone
  • Date: 2013-05-09 15:10:47 UTC
  • mfrom: (1.1.21) (4.4.27 sid)
  • Revision ID: package-import@ubuntu.com-20130509151047-aqv8d71oj9wvcv8c
Tags: 1.5.1-2
[ Jakub Wilk ]
* Use canonical URIs for Vcs-* fields.

[ Luke Faraone ]
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from __future__ import absolute_import
 
1
from __future__ import absolute_import, unicode_literals
2
2
 
3
3
import re
4
4
 
54
54
        a = Article.objects.get(pk=1)
55
55
        data = self.getValidData(a)
56
56
        data["comment"] = "This is another comment"
57
 
        data["object_pk"] = u'\ufffd'
 
57
        data["object_pk"] = '\ufffd'
58
58
        response = self.client.post("/post/", data)
59
59
        self.assertEqual(response.status_code, 400)
60
60
 
265
265
        data["comment"] = "This is another comment"
266
266
        response = self.client.post("/post/", data)
267
267
        location = response["Location"]
268
 
        broken_location = location + u"\ufffd"
 
268
        broken_location = location + "\ufffd"
269
269
        response = self.client.get(broken_location)
270
270
        self.assertEqual(response.status_code, 200)
271
271