Unicode strings have to be declared as such for python to be happy.
This commit is contained in:
parent
c68d49dfce
commit
74c1662f54
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue