test: sync test with messages

This commit is contained in:
Benjamin Dauvergne 2020-07-01 11:41:35 +02:00
parent 018d3c8520
commit 95fa3f1af9
1 changed files with 3 additions and 3 deletions

View File

@ -1576,17 +1576,17 @@ def test_oidc_client_clean():
redirect_uris='https://example.com/ https://example2.com/',
identifier_policy=OIDCClient.POLICY_UUID).clean()
with pytest.raises(ValidationError, match=r'must be the same'):
with pytest.raises(ValidationError, match=r'same domain'):
OIDCClient(
redirect_uris='https://example.com/ https://example2.com/',
identifier_policy=OIDCClient.POLICY_PAIRWISE_REVERSIBLE).clean()
with pytest.raises(ValidationError, match=r'must be the same'):
with pytest.raises(ValidationError, match=r'same domain'):
OIDCClient(
redirect_uris='https://example.com/ https://example2.com/',
identifier_policy=OIDCClient.POLICY_PAIRWISE).clean()
with pytest.raises(ValidationError, match=r'must be the same'):
with pytest.raises(ValidationError, match=r'same domain'):
OIDCClient(
redirect_uris='https://example.com/ https://example2.com/',
identifier_policy=OIDCClient.POLICY_PAIRWISE).clean()