Path: blob/trunk/py/test/unit/selenium/webdriver/common/fedcm/account_tests.py
1990 views
# Licensed to the Software Freedom Conservancy (SFC) under one1# or more contributor license agreements. See the NOTICE file2# distributed with this work for additional information3# regarding copyright ownership. The SFC licenses this file4# to you under the Apache License, Version 2.0 (the5# "License"); you may not use this file except in compliance6# with the License. You may obtain a copy of the License at7#8# http://www.apache.org/licenses/LICENSE-2.09#10# Unless required by applicable law or agreed to in writing,11# software distributed under the License is distributed on an12# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY13# KIND, either express or implied. See the License for the14# specific language governing permissions and limitations15# under the License.1617from selenium.webdriver.common.fedcm.account import Account181920def test_account_properties():21account_data = {22"accountId": "12341234",23"email": "[email protected]",24"name": "Real Name",25"givenName": "Test Name",26"pictureUrl": "picture-url",27"idpConfigUrl": "idp-config-url",28"loginState": "login-state",29"termsOfServiceUrl": "terms-of-service-url",30"privacyPolicyUrl": "privacy-policy-url",31}3233account = Account(account_data)3435assert account.account_id == "12341234"36assert account.email == "[email protected]"37assert account.name == "Real Name"38assert account.given_name == "Test Name"39assert account.picture_url == "picture-url"40assert account.idp_config_url == "idp-config-url"41assert account.login_state == "login-state"42assert account.terms_of_service_url == "terms-of-service-url"43assert account.privacy_policy_url == "privacy-policy-url"444546