tests: check provisioned user attribute as proper type (#36515)
This commit is contained in:
parent
248e7563c7
commit
87e940ddfc
|
@ -2,6 +2,7 @@
|
|||
import shutil
|
||||
from quixote import cleanup
|
||||
|
||||
from wcs.qommon import force_str
|
||||
from wcs.qommon.http_request import HTTPRequest
|
||||
from wcs.ctl.hobo_notify import CmdHoboNotify
|
||||
from wcs.roles import Role
|
||||
|
@ -532,7 +533,7 @@ def test_process_notification_user_provision(pub):
|
|||
assert user.form_data['_email'] == 'john.doe@example.net'
|
||||
assert user.email == 'john.doe@example.net'
|
||||
assert user.form_data['_first_name'] == 'John'
|
||||
assert user.form_data['_last_name'] == u'Doé'.encode('utf-8')
|
||||
assert user.form_data['_last_name'] == force_str(u'Doé')
|
||||
assert user.form_data['_zipcode'] == '13400'
|
||||
assert user.form_data['_birthdate'] is None
|
||||
assert user.name_identifiers == ['a'*32]
|
||||
|
|
Loading…
Reference in New Issue