tests: check provisioned user attribute as proper type (#36515)

This commit is contained in:
Frédéric Péters 2019-11-15 20:24:47 +01:00
parent 248e7563c7
commit 87e940ddfc
1 changed files with 2 additions and 1 deletions

View File

@ -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]