summaryrefslogtreecommitdiffstats
path: root/ipatests/test_xmlrpc/test_user_plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipatests/test_xmlrpc/test_user_plugin.py')
-rw-r--r--ipatests/test_xmlrpc/test_user_plugin.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ipatests/test_xmlrpc/test_user_plugin.py b/ipatests/test_xmlrpc/test_user_plugin.py
index 6d58c53aa..8245dc7f0 100644
--- a/ipatests/test_xmlrpc/test_user_plugin.py
+++ b/ipatests/test_xmlrpc/test_user_plugin.py
@@ -806,8 +806,9 @@ class TestPrincipals(XMLRPC_test):
)
command = testuser.make_create_command()
- with raises_exact(errors.MalformedUserPrincipal(
- principal=u'tuser1@BAD@NOTFOUND.ORG')):
+ with raises_exact(errors.ConversionError(
+ name='principal', error="Malformed principal: '{}'".format(
+ testuser.kwargs['krbprincipalname']))):
command()
def test_set_principal_expiration(self, user):