Unicode strings have to be declared as such for python to be happy.

This commit is contained in:
Jake Moshenko 2014-09-22 18:49:52 -04:00
parent c68d49dfce
commit 74c1662f54

View file

@ -342,8 +342,8 @@ class TestChangeUserDetails(ApiTestCase):
def test_changepassword_unicode(self):
self.login(READ_ACCESS_USER)
self.putJsonResponse(User,
data=dict(password='someunicode北京市pass'))
self.login(READ_ACCESS_USER, password='someunicode北京市pass')
data=dict(password=u'someunicode北京市pass'))
self.login(READ_ACCESS_USER, password=u'someunicode北京市pass')
def test_changeeemail(self):
self.login(READ_ACCESS_USER)